From 15b2cc6fec48d4e20aeb1cf7a46834c9c2095d0f Mon Sep 17 00:00:00 2001 From: "syed.amer@gilani.eu" Date: Fri, 26 Mar 2010 07:36:15 +0000 Subject: [PATCH] Only set Windows specific Compile Flags when compiling for Windows Thanks to filipetinypad for the Patch --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20568b9a..9dd3a349 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") +