cmake/FindCPLEX.cmake
changeset 879 38213abd2911
parent 635 89705c452130
child 972 1818cc848005
equal deleted inserted replaced
2:b459b0593048 3:b8c74ced3ba9
    22 )
    22 )
    23 
    23 
    24 IF(CPLEX_FOUND)
    24 IF(CPLEX_FOUND)
    25   SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
    25   SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
    26   SET(CPLEX_LIBRARIES ${CPLEX_LIBRARY})
    26   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")
    27 ENDIF(CPLEX_FOUND)
    30 ENDIF(CPLEX_FOUND)
    28 
    31 
    29 MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
    32 MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
    30 
    33 
    31 IF(CPLEX_FOUND)
    34 IF(CPLEX_FOUND)