Commit 69384731 authored by Mike Kremer's avatar Mike Kremer
Browse files

Made gurobi finder work on mac

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@194 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent a738b64a
......@@ -25,11 +25,13 @@ ELSEIF(APPLE)
find_path(GUROBI_INCLUDE_DIR NAMES gurobi_c++.h
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/gurobi40"
${GUROBI_INCLUDE_PATH}
"${GUROBI_HOME}/include"
)
find_library( GUROBI_LIBRARY
SuperLU
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/gurobi40")
gurobi
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/gurobi40"
"${GUROBI_HOME}/lib")
ELSE( WIN32 )
find_path(GUROBI_INCLUDE_DIR NAMES gurobi_c++.h
......@@ -66,6 +68,8 @@ IF(GUROBI_INCLUDE_DIR AND NOT GUROBI_LIBRARY)
SET(GUROBI_LIBRARY "gurobi46;gurobi_c++;pthread" CACHE STRING "GUROBI Libraries")
ELSEIF(EXISTS "${GUROBI_LIBRARY_DIR}/libgurobi50.so")
SET(GUROBI_LIBRARY "gurobi50;gurobi_c++;pthread" CACHE STRING "GUROBI Libraries")
ELSEIF(EXISTS "${GUROBI_LIBRARY_DIR}/libgurobi50.dylib")
SET(GUROBI_LIBRARY "gurobi50;gurobi_c++;pthread" CACHE STRING "GUROBI Libraries")
ELSE()
message(FATAL_ERROR "Couldn't find a gurobi lib in ${GUROBI_LIBRARY_DIR}. Maybe it's a version I don't know about, yet.")
ENDIF()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment