# HG changeset patch # User Alpar Juttner # Date 1396965462 -7200 # Node ID bdc029900564980f8145b060adead58f6e31dd71 # Parent c180a66f6edda02be370e0ee994f9ac625c37c2d# Parent e00d7b681d8e8fa6cc94353e9b30388b27138043 Merge bugfixes #465, #484 to branch 1.3 diff -r c180a66f6edd -r bdc029900564 CMakeLists.txt --- a/CMakeLists.txt Wed Jan 22 15:34:29 2014 +0100 +++ b/CMakeLists.txt Tue Apr 08 15:57:42 2014 +0200 @@ -1,4 +1,4 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +CMAKE_MINIMUM_REQUIRED(VERSION 2.8) SET(PROJECT_NAME "LEMON") PROJECT(${PROJECT_NAME}) diff -r c180a66f6edd -r bdc029900564 lemon/config.h.in --- a/lemon/config.h.in Wed Jan 22 15:34:29 2014 +0100 +++ b/lemon/config.h.in Tue Apr 08 15:57:42 2014 +0200 @@ -1,5 +1,6 @@ #define LEMON_VERSION "@PROJECT_VERSION@" #cmakedefine LEMON_HAVE_LONG_LONG 1 + #cmakedefine LEMON_HAVE_LP 1 #cmakedefine LEMON_HAVE_MIP 1 #cmakedefine LEMON_HAVE_GLPK 1 @@ -7,7 +8,15 @@ #cmakedefine LEMON_HAVE_SOPLEX 1 #cmakedefine LEMON_HAVE_CLP 1 #cmakedefine LEMON_HAVE_CBC 1 -#cmakedefine LEMON_DEFAULT_LP @LEMON_DEFAULT_LP@ -#cmakedefine LEMON_DEFAULT_MIP @LEMON_DEFAULT_MIP@ + +#define _LEMON_CPLEX 1 +#define _LEMON_CLP 2 +#define _LEMON_GLPK 3 +#define _LEMON_SOPLEX 4 +#define _LEMON_CBC 5 + +#cmakedefine LEMON_DEFAULT_LP _LEMON_@LEMON_DEFAULT_LP@ +#cmakedefine LEMON_DEFAULT_MIP _LEMON_@LEMON_DEFAULT_MIP@ + #cmakedefine LEMON_USE_PTHREAD 1 #cmakedefine LEMON_USE_WIN32_THREADS 1 diff -r c180a66f6edd -r bdc029900564 lemon/lp.h --- a/lemon/lp.h Wed Jan 22 15:34:29 2014 +0100 +++ b/lemon/lp.h Tue Apr 08 15:57:42 2014 +0200 @@ -45,8 +45,8 @@ ///The default LP solver identifier. ///\ingroup lp_group /// - ///Currently, the possible values are \c GLPK, \c CPLEX, - ///\c SOPLEX or \c CLP + ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX, + ///\c _LEMON_SOPLEX or \c LEMON__CLP #define LEMON_DEFAULT_LP SOLVER ///The default LP solver @@ -61,7 +61,8 @@ ///The default MIP solver identifier. ///\ingroup lp_group /// - ///Currently, the possible values are \c GLPK, \c CPLEX or \c CBC + ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX + ///or \c _LEMON_CBC #define LEMON_DEFAULT_MIP SOLVER ///The default MIP solver. @@ -71,20 +72,20 @@ ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip typedef GlpkMip Mip; #else -#if LEMON_DEFAULT_LP == GLPK +#if LEMON_DEFAULT_LP == _LEMON_GLPK typedef GlpkLp Lp; -#elif LEMON_DEFAULT_LP == CPLEX +#elif LEMON_DEFAULT_LP == _LEMON_CPLEX typedef CplexLp Lp; -#elif LEMON_DEFAULT_LP == SOPLEX +#elif LEMON_DEFAULT_LP == _LEMON_SOPLEX typedef SoplexLp Lp; -#elif LEMON_DEFAULT_LP == CLP +#elif LEMON_DEFAULT_LP == _LEMON_CLP typedef ClpLp Lp; #endif -#if LEMON_DEFAULT_MIP == GLPK +#if LEMON_DEFAULT_MIP == _LEMON_GLPK typedef GlpkMip Mip; -#elif LEMON_DEFAULT_MIP == CPLEX +#elif LEMON_DEFAULT_MIP == _LEMON_CPLEX typedef CplexMip Mip; -#elif LEMON_DEFAULT_MIP == CBC +#elif LEMON_DEFAULT_MIP == _LEMON_CBC typedef CbcMip Mip; #endif #endif