@ -125,7 +125,12 @@ if(CMAKE_COMPILER_IS_GNUCC)
# S e t s t a n d a r d f l a g s f o r G C C
set ( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops" )
set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -funroll-loops" )
add_definitions ( -DBOOST_RESULT_OF_USE_DECLTYPE )
# T O D O : r e m o v e f o r c i n g t h e o l d v e r s i o n o f o p t i o n a l a s s o o n a s t h e r e l a t e d S p i r i t b u g i s f i x e d :
# h t t p s : / / s v n . b o o s t . o r g / t r a c / b o o s t / t i c k e t / 1 2 3 4 9
# F i x t h a n k s t o : h t t p s : / / g i t h u b . c o m / f r e e o r i o n / f r e e o r i o n / i s s u e s / 7 7 7
add_definitions ( -DBOOST_RESULT_OF_USE_DECLTYPE -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -pedantic -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unknown-pragmas" )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wno-deprecated-declarations" )
if ( CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0 )
@ -187,7 +192,10 @@ else(CLANG)
set ( CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++" )
endif ( )
add_definitions ( -DBOOST_RESULT_OF_USE_DECLTYPE )
# T O D O : r e m o v e f o r c i n g t h e o l d v e r s i o n o f o p t i o n a l a s s o o n a s t h e r e l a t e d S p i r i t b u g i s f i x e d :
# h t t p s : / / s v n . b o o s t . o r g / t r a c / b o o s t / t i c k e t / 1 2 3 4 9
# F i x t h a n k s t o : h t t p s : / / g i t h u b . c o m / f r e e o r i o n / f r e e o r i o n / i s s u e s / 7 7 7
add_definitions ( -DBOOST_RESULT_OF_USE_DECLTYPE -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=${CLANG_STDLIB} -Wall -pedantic -Wno-newline-eof -Wno-mismatched-tags -Wno-unused-local-typedefs -ftemplate-depth=1024 -Wno-parentheses-equality" )
if ( FORCE_COLOR )