Skip to content

Commit ce300cb

Browse files
committed
.
1 parent a5c56f2 commit ce300cb

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ add_definitions( -DBOOST_TEST_DYN_LINK )
1414
find_package( Threads REQUIRED )
1515

1616
if( ${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 )
1818
else( )
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( )
2428
endif( )
2529

0 commit comments

Comments
 (0)