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 737164b commit ce3f809Copy full SHA for ce3f809
src/CMakeLists.txt
@@ -19,8 +19,7 @@ if(UNIX)
19
endif(UNIX)
20
21
if(MSVC)
22
- set(CMAKE_CXX_FLAGS "/O2 /wd4251 /wd4273")
23
- set(CMAKE_CXX_FLAGS_RELEASE "/O2 /wd4251 /wd4273")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2 /wd4251 /wd4273")
24
add_definitions(/W3)
25
endif(MSVC)
26
@@ -56,7 +55,7 @@ if(APPLE)
56
55
endif(APPLE)
57
58
59
- set(CMAKE_CXX_FLAGS "/EHa /Zi")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHa /Zi")
60
# https://cmake.org/cmake/help/latest/prop_tgt/MSVC_RUNTIME_LIBRARY.html
61
# windows/restrictDriverAccess.cpp is building separately
62
add_library(restrictDriverAccess OBJECT windows/restrictDriverAccess.cpp)
0 commit comments