COIN-OR::LEMON - Graph Library

Changeset 683:6dc44006c1a8 in lemon for cmake/FindCPLEX.cmake


Ignore:
Timestamp:
04/28/09 12:55:43 (11 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Link libm and libpthread if using CPLEX (#277)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmake/FindCPLEX.cmake

    r682 r683  
    2525  SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
    2626  SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
     27  IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
     28    SET(CPLEX_LIBRARIES "${CPLEX_LIBRARIES};m;pthread")
     29  ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
    2730ENDIF(CPLEX_FOUND)
    2831
Note: See TracChangeset for help on using the changeset viewer.