COIN-OR::LEMON - Graph Library

Ticket #481: lemon-1.3-lp-linkage.patch

File lemon-1.3-lp-linkage.patch, 543 bytes (added by amluto, 10 years ago)

Patch to fix shared library build with GLPK, Clp, and Cbc

  • lemon-1.3/lemon/CMakeLists.txt

    old new  
    5959  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
    6060ENDIF()
    6161
     62IF(LEMON_HAVE_GLPK)
     63  TARGET_LINK_LIBRARIES(lemon ${GLPK_LIBRARIES})
     64ENDIF()
     65
     66IF(LEMON_HAVE_CLP)
     67  TARGET_LINK_LIBRARIES(lemon ${COIN_CLP_LIBRARIES})
     68ENDIF()
     69
     70IF(LEMON_HAVE_CBC)
     71  TARGET_LINK_LIBRARIES(lemon ${COIN_CBC_LIBRARIES})
     72ENDIF()
     73
    6274INSTALL(
    6375  TARGETS lemon
    6476  ARCHIVE DESTINATION lib