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")