diff -r 27d7d232fbcc -r 39b6e65574c6 CMakeLists.txt --- a/CMakeLists.txt Thu Apr 02 14:09:21 2015 +0200 +++ b/CMakeLists.txt Thu Apr 02 22:34:03 2015 +0200 @@ -4,6 +4,10 @@ CMAKE_POLICY(SET CMP0048 OLD) ENDIF(POLICY CMP0048) +IF(POLICY CMP0043) + CMAKE_POLICY(SET CMP0043 OLD) +ENDIF(POLICY CMP0043) + SET(PROJECT_NAME "LEMON") PROJECT(${PROJECT_NAME}) @@ -225,6 +229,10 @@ "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer." FORCE ) +SET_DIRECTORY_PROPERTIES(PROPERTIES + COMPILE_DEFINITIONS_DEBUG "LEMON_ENABLE_DEBUG" + COMPILE_DEFINITIONS_MAINTAINER "LEMON_ENABLE_DEBUG" +) INCLUDE(CheckTypeSize) CHECK_TYPE_SIZE("long long" LONG_LONG)