File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,12 +14,16 @@ add_definitions( -DBOOST_TEST_DYN_LINK )
1414find_package ( Threads REQUIRED )
1515
1616if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL 'MSVC ' )
17- add_compile_options ( -D_WIN32_WINNT=0x0601 )
17+ add_compile_options ( -D_WIN32_WINNT=0x0601 /std:c++latest )
1818else ( )
19- if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
20- add_compile_options (-std=c++14 -Weverything -pthread -Wno-c++98-compat -g -Wno-covered-switch-default -Wno-padded -Wno-exit-time-destructors -Wno-c++98-compat-pedantic -Wno-unused-parameter -Wno-missing-noreturn -Wno-missing-prototypes -Wno-disabled-macro-expansion -Wno-c99-compat )
19+ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang" )
20+ add_compile_options (-std=c++14 -march=native -pthread -Weverything -Wno-c++98-compat -Wno-covered-switch-default -Wno-padded -Wno-exit-time-destructors -Wno-c++98-compat-pedantic -Wno-unused-parameter -Wno-missing-noreturn -Wno-missing-prototypes -Wno-disabled-macro-expansion )
21+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g" )
22+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3" )
2123 elseif ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
22- add_compile_options (-std=c++14 -ggdb -Wall -pthread -Wno-deprecated-declarations -march=native )
24+ add_compile_options (-std=c++14 -march=native -pthread -Wall -Wno-deprecated-declarations )
25+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g" )
26+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3" )
2327 endif ( )
2428endif ( )
2529
You can’t perform that action at this time.
0 commit comments