Location: LEMON/LEMON-main/cmake/FindCOIN.cmake - annotation
Load file history
Make CBC interface compatible with latest CBC releases
CBC now uses the CLP backend unconditionally
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r634:4629e096e3af r946:1f1328691a07 r634:4629e096e3af r634:4629e096e3af r621:b536eaacb39b r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r947:0dba9b96550a r947:0dba9b96550a r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r973:ee581a0ecfbf r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r973:ee581a0ecfbf r973:ee581a0ecfbf r621:b536eaacb39b r621:b536eaacb39b r621:b536eaacb39b r627:20dac2104519 r627:20dac2104519 r627:20dac2104519 r627:20dac2104519 r621:b536eaacb39b | SET(COIN_ROOT_DIR "" CACHE PATH "COIN root directory")
FIND_PATH(COIN_INCLUDE_DIR coin/CoinUtilsConfig.h
HINTS ${COIN_ROOT_DIR}/include
)
FIND_LIBRARY(COIN_CBC_LIBRARY
NAMES Cbc libCbc
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_CBC_SOLVER_LIBRARY
NAMES CbcSolver libCbcSolver
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_CGL_LIBRARY
NAMES Cgl libCgl
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_CLP_LIBRARY
NAMES Clp libClp
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_COIN_UTILS_LIBRARY
NAMES CoinUtils libCoinUtils
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_OSI_LIBRARY
NAMES Osi libOsi
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_OSI_CBC_LIBRARY
NAMES OsiCbc libOsiCbc
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_OSI_CLP_LIBRARY
NAMES OsiClp libOsiClp
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_OSI_VOL_LIBRARY
NAMES OsiVol libOsiVol
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_VOL_LIBRARY
NAMES Vol libVol
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_ZLIB_LIBRARY
NAMES z libz
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
FIND_LIBRARY(COIN_BZ2_LIBRARY
NAMES bz2 libbz2
HINTS ${COIN_ROOT_DIR}/lib/coin
HINTS ${COIN_ROOT_DIR}/lib
)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(COIN DEFAULT_MSG
COIN_INCLUDE_DIR
COIN_CBC_LIBRARY
COIN_CBC_SOLVER_LIBRARY
COIN_CGL_LIBRARY
COIN_CLP_LIBRARY
COIN_COIN_UTILS_LIBRARY
COIN_OSI_LIBRARY
COIN_OSI_CBC_LIBRARY
COIN_OSI_CLP_LIBRARY
# COIN_OSI_VOL_LIBRARY
# COIN_VOL_LIBRARY
)
IF(COIN_FOUND)
SET(COIN_INCLUDE_DIRS ${COIN_INCLUDE_DIR})
SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARY};${COIN_COIN_UTILS_LIBRARY};${COIN_ZLIB_LIBRARY};${COIN_BZ2_LIBRARY}")
IF(COIN_ZLIB_LIBRARY)
SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARIES};${COIN_ZLIB_LIBRARY}")
ENDIF(COIN_ZLIB_LIBRARY)
IF(COIN_BZ2_LIBRARY)
SET(COIN_CLP_LIBRARIES "${COIN_CLP_LIBRARIES};${COIN_BZ2_LIBRARY}")
ENDIF(COIN_BZ2_LIBRARY)
SET(COIN_CBC_LIBRARIES "${COIN_CBC_LIBRARY};${COIN_CBC_SOLVER_LIBRARY};${COIN_CGL_LIBRARY};${COIN_OSI_LIBRARY};${COIN_OSI_CBC_LIBRARY};${COIN_OSI_CLP_LIBRARY};${COIN_ZLIB_LIBRARY};${COIN_BZ2_LIBRARY};${COIN_CLP_LIBRARIES}")
SET(COIN_LIBRARIES ${COIN_CBC_LIBRARIES})
ENDIF(COIN_FOUND)
MARK_AS_ADVANCED(
COIN_INCLUDE_DIR
COIN_CBC_LIBRARY
COIN_CBC_SOLVER_LIBRARY
COIN_CGL_LIBRARY
COIN_CLP_LIBRARY
COIN_COIN_UTILS_LIBRARY
COIN_OSI_LIBRARY
COIN_OSI_CBC_LIBRARY
COIN_OSI_CLP_LIBRARY
COIN_OSI_VOL_LIBRARY
COIN_VOL_LIBRARY
COIN_ZLIB_LIBRARY
COIN_BZ2_LIBRARY
)
IF(COIN_FOUND)
SET(LEMON_HAVE_LP TRUE)
SET(LEMON_HAVE_MIP TRUE)
SET(LEMON_HAVE_CLP TRUE)
SET(LEMON_HAVE_CBC TRUE)
ENDIF(COIN_FOUND)
|