From bc544cc4a4bafaa06bb02b9e700519ab2731dfb7 Mon Sep 17 00:00:00 2001 From: nojhan Date: Sat, 25 May 2013 17:21:08 +0200 Subject: [PATCH] buildfix: do not always build release Remove a test that was building Release if DEBUG was not set. The correct way to specify build is to use CMAKE_BUILD_TYPE. --- cmake/Config.cmake | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmake/Config.cmake b/cmake/Config.cmake index c0576397f..55e1b7c41 100644 --- a/cmake/Config.cmake +++ b/cmake/Config.cmake @@ -31,12 +31,6 @@ endif() ### 0) Define general CXX flags for DEBUG and RELEASE ###################################################################################### -if(DEBUG) - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "" FORCE) -else(DEBUG) - set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE) -endif(DEBUG) - add_definitions(-DDEPRECATED_MESSAGES) set(CMAKE_CXX_FLAGS_DEBUG "-Wunknown-pragmas -O0 -g -Wall -Wextra -ansi -pedantic" CACHE STRING "" FORCE) set(CMAKE_CXX_FLAGS_RELEASE "-Wunknown-pragmas -O2" CACHE STRING "" FORCE)