From 35713dfe29b04804254c5980c39fecc878e634d3 Mon Sep 17 00:00:00 2001 From: liamjdavis <66973153+liamjdavis@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:19:04 -0700 Subject: [PATCH] Update CMakeLists.txt for Gurobi 11.0.3 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32ce965f3..8db91b2ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,7 +158,7 @@ if (${ENABLE_GUROBI}) add_compile_definitions(ENABLE_GUROBI) set(GUROBI_LIB1 "gurobi_c++") - set(GUROBI_LIB2 "gurobi95") + set(GUROBI_LIB2 "gurobi110") add_library(${GUROBI_LIB1} SHARED IMPORTED) set_target_properties(${GUROBI_LIB1} PROPERTIES IMPORTED_LOCATION ${GUROBI_DIR}/lib/libgurobi_c++.a) @@ -169,9 +169,9 @@ if (${ENABLE_GUROBI}) # MACOSx uses .dylib instead of .so for its Gurobi downloads. if (APPLE) - set_target_properties(${GUROBI_LIB2} PROPERTIES IMPORTED_LOCATION ${GUROBI_DIR}/lib/libgurobi95.dylib) + set_target_properties(${GUROBI_LIB2} PROPERTIES IMPORTED_LOCATION ${GUROBI_DIR}/lib/libgurobi110.dylib) else() - set_target_properties(${GUROBI_LIB2} PROPERTIES IMPORTED_LOCATION ${GUROBI_DIR}/lib/libgurobi95.so) + set_target_properties(${GUROBI_LIB2} PROPERTIES IMPORTED_LOCATION ${GUROBI_DIR}/lib/libgurobi110.so) endif () list(APPEND LIBS ${GUROBI_LIB2})