COIN-OR::LEMON - Graph Library

Changeset 636:6dc44006c1a8 in lemon-1.2 for cmake


Ignore:
Timestamp:
04/28/09 12:55:43 (16 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

    r635 r636  
    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.