From 0c9f84a5c615aaf69914d935ebe93199f1f0b50e Mon Sep 17 00:00:00 2001 From: gereon Date: Fri, 22 Feb 2013 14:16:27 +0100 Subject: [PATCH] Building with DEBUG totally breaks everything in g++. --- CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cf280117..0ffe20f22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,13 +50,13 @@ option(USE_POPCNT "Sets whether the popcnt instruction is going to be used." ON) option(USE_BOOST_STATIC_LIBRARIES "Sets whether the Boost libraries should be linked statically." ON) # If the DEBUG option was turned on, we will target a debug version and a release version otherwise -if (DEBUG) - set (CMAKE_BUILD_TYPE "DEBUG") - message(STATUS "Building DEBUG version.") -else() - set (CMAKE_BUILD_TYPE "RELEASE") - message(STATUS "Building RELEASE version.") -endif() +#if (DEBUG) +# set (CMAKE_BUILD_TYPE "DEBUG") +# message(STATUS "Building DEBUG version.") +#else() +# set (CMAKE_BUILD_TYPE "RELEASE") +# message(STATUS "Building RELEASE version.") +#endif() message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") message(STATUS "CMAKE_BUILD_TYPE (ENV): $ENV{CMAKE_BUILD_TYPE}")