mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-18 18:51:38 +02:00
Only set Windows specific Compile Flags when compiling for Windows
Thanks to filipetinypad for the Patch
This commit is contained in:
parent
588f257530
commit
15b2cc6fec
1 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,8 @@ IF(WIN32)
|
|||
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /analyze")
|
||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /analyze")
|
||||
|
||||
# this line removes "/D NDEBUG" from release, we want them in order to find bugs even on release builds.
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE "/MD /O2 /Ob2")
|
||||
ENDIF(WIN32)
|
||||
|
||||
# this line removes "/D NDEBUG" from release, we want them in order to find bugs even on release builds.
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE "/MD /O2 /Ob2")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue