We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff7cf9 commit 6f4c423Copy full SHA for 6f4c423
CMakeLists.txt
@@ -81,14 +81,14 @@ endif()
81
find_package(Threads)
82
83
if(UNIX)
84
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wpedantic -Wextra -Wno-unused-parameter")
+ add_compile_options(-g -Wall -Wpedantic -Wextra -Wno-unused-parameter)
85
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
86
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast")
87
endif()
88
89
if(APPLE)
90
# -Wall doesn't enable everything we want to see
91
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare")
+ add_compile_options(-Wsign-compare)
92
add_definitions(-DDarwin)
93
elseif(MSVC)
94
add_definitions(-DWIN32)
0 commit comments