gravatar
ladanyi@tmit.bme.hu
ladanyi@tmit.bme.hu
Link libm and libpthread if using CPLEX (#277)
0 1 0
default
1 file changed with 3 insertions and 0 deletions:
↑ Collapse diff ↑
Ignore white space 24 line context
... ...
@@ -15,21 +15,24 @@
15 15

	
16 16
INCLUDE(FindPackageHandleStandardArgs)
17 17
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPLEX DEFAULT_MSG CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
18 18

	
19 19
FIND_PATH(CPLEX_BIN_DIR
20 20
  cplex91.dll
21 21
  PATHS "C:/ILOG/CPLEX91/bin/x86_win32"
22 22
)
23 23

	
24 24
IF(CPLEX_FOUND)
25 25
  SET(CPLEX_INCLUDE_DIRS ${CPLEX_INCLUDE_DIR})
26 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 30
ENDIF(CPLEX_FOUND)
28 31

	
29 32
MARK_AS_ADVANCED(CPLEX_LIBRARY CPLEX_INCLUDE_DIR CPLEX_BIN_DIR)
30 33

	
31 34
IF(CPLEX_FOUND)
32 35
  SET(LEMON_HAVE_LP TRUE)
33 36
  SET(LEMON_HAVE_MIP TRUE)
34 37
  SET(LEMON_HAVE_CPLEX TRUE)
35 38
ENDIF(CPLEX_FOUND)
0 comments (0 inline)