Skip to content
Snippets Groups Projects
Commit 052b4fd5 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

FindGurobi: macos compat (find .dylib instead of .so)

parent 9e180cdb
Branches
No related tags found
1 merge request!13FindGurobi: macos compat (find .dylib instead of .so)
Pipeline #21735 failed
......@@ -25,13 +25,15 @@ set(GUROBI_LIB_DIR "${GUROBI_HOME}/lib")
if (WIN32)
file(GLOB GUROBI_LIBRARY_LIST
RELATIVE ${GUROBI_BIN_DIR}
${GUROBI_BIN_DIR}/gurobi*.dll
)
${GUROBI_BIN_DIR}/gurobi*.dll)
elseif(APPLE)
file(GLOB GUROBI_LIBRARY_LIST
RELATIVE ${GUROBI_LIB_DIR}
${GUROBI_LIB_DIR}/libgurobi*.dylib)
else()
file(GLOB GUROBI_LIBRARY_LIST
RELATIVE ${GUROBI_LIB_DIR}
${GUROBI_LIB_DIR}/libgurobi*.so
)
${GUROBI_LIB_DIR}/libgurobi*.so)
endif()
# Ignore libgurobiXY_light.so, libgurobi.so (without version):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment