[Lemon-commits] Alpar Juttner: Turn on LEMON_ENABLE_DEBUG in Deb...

Lemon HG hg at lemon.cs.elte.hu
Thu Apr 2 22:40:30 CEST 2015


details:   http://lemon.cs.elte.hu/hg/lemon/rev/ee96cd1cad8a
changeset: 1334:ee96cd1cad8a
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Tue Oct 22 12:24:09 2013 +0200
description:
	Turn on LEMON_ENABLE_DEBUG in Debug modes (#477)

diffstat:

 CMakeLists.txt |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (24 lines):

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,9 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 
+IF(POLICY CMP0043) 
+  CMAKE_POLICY(SET CMP0043 OLD) 
+ENDIF(POLICY CMP0043)
+
 SET(PROJECT_NAME "LEMON")
 PROJECT(${PROJECT_NAME})
 
@@ -211,6 +215,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)


More information about the Lemon-commits mailing list