COIN-OR::LEMON - Graph Library

Ticket #477: dd57dfa12bd5.patch

File dd57dfa12bd5.patch, 1.2 KB (added by Alpar Juttner, 9 years ago)
  • CMakeLists.txt

    # 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  
    208208ENDIF()
    209209
    210210SET( 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 )
    213213
     214IF(CMAKE_BUILD_TYPE STREQUAL "Debug" OR
     215    CMAKE_BUILD_TYPE STREQUAL "Maintainer")
     216  SET(LEMON_ENABLE_DEBUG YES)
     217ENDIF()
    214218
    215219INCLUDE(CheckTypeSize)
    216220CHECK_TYPE_SIZE("long long" LONG_LONG)
  • lemon/config.h.in

    diff --git a/lemon/config.h.in b/lemon/config.h.in
    a b  
    1111#cmakedefine LEMON_DEFAULT_MIP @LEMON_DEFAULT_MIP@
    1212#cmakedefine LEMON_USE_PTHREAD 1
    1313#cmakedefine LEMON_USE_WIN32_THREADS 1
     14#cmakedefine LEMON_ENABLE_DEBUG 1