COIN-OR::LEMON - Graph Library

Changeset 1404:c8d0179a32a2 in lemon for CMakeLists.txt


Ignore:
Timestamp:
10/17/18 19:22:52 (21 months ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Parents:
1389:57167d92e96c (diff), 1402:3c00344f49c9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Phase:
public
Message:

Merge bugfixes #610,#611,#612,#614

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1346 r1404  
    8787IF(LEMON_ENABLE_GLPK)
    8888  FIND_PACKAGE(GLPK 4.33)
     89  IF(GLPK_FOUND)
     90    SET(LEMON_HAVE_LP TRUE)
     91    SET(LEMON_HAVE_MIP TRUE)
     92    SET(LEMON_HAVE_GLPK TRUE)
     93  ENDIF(GLPK_FOUND)
    8994ENDIF(LEMON_ENABLE_GLPK)
    9095IF(LEMON_ENABLE_ILOG)
    9196  FIND_PACKAGE(ILOG)
     97  IF(ILOG_FOUND)
     98    SET(LEMON_HAVE_LP TRUE)
     99    SET(LEMON_HAVE_MIP TRUE)
     100    SET(LEMON_HAVE_CPLEX TRUE)
     101  ENDIF(ILOG_FOUND)
    92102ENDIF(LEMON_ENABLE_ILOG)
    93103IF(LEMON_ENABLE_COIN)
    94104  FIND_PACKAGE(COIN)
     105  IF(COIN_FOUND)
     106    SET(LEMON_HAVE_LP TRUE)
     107    SET(LEMON_HAVE_MIP TRUE)
     108    SET(LEMON_HAVE_CLP TRUE)
     109    SET(LEMON_HAVE_CBC TRUE)
     110  ENDIF(COIN_FOUND)
    95111ENDIF(LEMON_ENABLE_COIN)
    96112IF(LEMON_ENABLE_SOPLEX)
    97113  FIND_PACKAGE(SOPLEX)
     114  IF(SOPLEX_FOUND)
     115    SET(LEMON_HAVE_LP TRUE)
     116    SET(LEMON_HAVE_SOPLEX TRUE)
     117  ENDIF(SOPLEX_FOUND)
    98118ENDIF(LEMON_ENABLE_SOPLEX)
    99 
    100 IF(GLPK_FOUND)
    101   SET(LEMON_HAVE_LP TRUE)
    102   SET(LEMON_HAVE_MIP TRUE)
    103   SET(LEMON_HAVE_GLPK TRUE)
    104 ENDIF(GLPK_FOUND)
    105 IF(ILOG_FOUND)
    106   SET(LEMON_HAVE_LP TRUE)
    107   SET(LEMON_HAVE_MIP TRUE)
    108   SET(LEMON_HAVE_CPLEX TRUE)
    109 ENDIF(ILOG_FOUND)
    110 IF(COIN_FOUND)
    111   SET(LEMON_HAVE_LP TRUE)
    112   SET(LEMON_HAVE_MIP TRUE)
    113   SET(LEMON_HAVE_CLP TRUE)
    114   SET(LEMON_HAVE_CBC TRUE)
    115 ENDIF(COIN_FOUND)
    116 IF(SOPLEX_FOUND)
    117   SET(LEMON_HAVE_LP TRUE)
    118   SET(LEMON_HAVE_SOPLEX TRUE)
    119 ENDIF(SOPLEX_FOUND)
    120119
    121120IF(ILOG_FOUND)
  • CMakeLists.txt

    r1398 r1404  
    44  CMAKE_POLICY(SET CMP0048 OLD)
    55ENDIF(POLICY CMP0048)
     6
     7IF(POLICY CMP0043)
     8  CMAKE_POLICY(SET CMP0043 OLD)
     9ENDIF(POLICY CMP0043)
    610
    711IF(POLICY CMP0026)
     
    234238    FORCE )
    235239
     240SET_DIRECTORY_PROPERTIES(PROPERTIES
     241  COMPILE_DEFINITIONS_DEBUG "LEMON_ENABLE_DEBUG"
     242  COMPILE_DEFINITIONS_MAINTAINER "LEMON_ENABLE_DEBUG"
     243)
    236244
    237245INCLUDE(CheckTypeSize)
     
    262270
    263271ENABLE_TESTING()
     272
     273
     274INCLUDE(CheckCXXCompilerFlag)
     275CHECK_CXX_COMPILER_FLAG("-std=c++11" LEMON_CXX11)
     276IF(LEMON_CXX11)
     277  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
     278ENDIF()
     279
    264280
    265281IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
Note: See TracChangeset for help on using the changeset viewer.