diff --git a/finders/FindGurobi.cmake b/finders/FindGurobi.cmake index 605e95f250d8074fa7af21e18022356dbc070aec..36a80bf035b523c60bcfd54842822e4fde1f67cc 100644 --- a/finders/FindGurobi.cmake +++ b/finders/FindGurobi.cmake @@ -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):