# HG changeset patch
# User Alpar Juttner <alpar@cs.elte.hu>
# Date 1381861523 -7200
# Tue Oct 15 20:25:23 2013 +0200
# Node ID dd57dfa12bd5ea930b4d6b8ff588512278e342c0
# Parent 15e233f588da4563e273f3dc2d489c8e3410e21a
Turn on LEMON_ENABLE_DEBUG in Debug modes (#477)
diff --git a/CMakeLists.txt b/CMakeLists.txt
a
|
b
|
|
208 | 208 | ENDIF() |
209 | 209 | |
210 | 210 | SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING |
211 | | "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer." |
212 | | FORCE ) |
| 211 | "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer." |
| 212 | FORCE ) |
213 | 213 | |
| 214 | IF(CMAKE_BUILD_TYPE STREQUAL "Debug" OR |
| 215 | CMAKE_BUILD_TYPE STREQUAL "Maintainer") |
| 216 | SET(LEMON_ENABLE_DEBUG YES) |
| 217 | ENDIF() |
214 | 218 | |
215 | 219 | INCLUDE(CheckTypeSize) |
216 | 220 | CHECK_TYPE_SIZE("long long" LONG_LONG) |
diff --git a/lemon/config.h.in b/lemon/config.h.in
a
|
b
|
|
11 | 11 | #cmakedefine LEMON_DEFAULT_MIP @LEMON_DEFAULT_MIP@ |
12 | 12 | #cmakedefine LEMON_USE_PTHREAD 1 |
13 | 13 | #cmakedefine LEMON_USE_WIN32_THREADS 1 |
| 14 | #cmakedefine LEMON_ENABLE_DEBUG 1 |