From ddecbbc384b8189439456a1329b5b86939e8a640 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 22 Sep 2011 23:47:24 +1100 Subject: [PATCH] * changed default build type type --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e678576..390a694 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,10 +9,9 @@ INCLUDE(CheckIncludeFile) INCLUDE(CheckLibraryExists) INCLUDE(CheckFunctionExists) -IF (NOT CMAKE_BUILD_TYPE) - SET (CMAKE_BUILD_TYPE Debug) +IF (CMAKE_BUILD_TYPE EQUAL "Debug") SET (CMAKE_C_FLAGS "-ggdb -O0 -Wall -pedantic -DDEBUG -std=c99") -ENDIF (NOT CMAKE_BUILD_TYPE) +ENDIF (CMAKE_BUILD_TYPE EQUAL "Debug") # set paths SET(CMAKE_INSTALL_PREFIX "/usr")