From db064fc84ea74c0ed909f99f816dc27fa33053e3 Mon Sep 17 00:00:00 2001 From: whart222 Date: Wed, 19 Jun 2024 15:58:15 -0600 Subject: [PATCH] Updating logic for finding gurobi --- cmake/FindGUROBI.cmake | 2 +- lib/coek/coek/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/FindGUROBI.cmake b/cmake/FindGUROBI.cmake index 6f40880b..da510065 100644 --- a/cmake/FindGUROBI.cmake +++ b/cmake/FindGUROBI.cmake @@ -40,7 +40,7 @@ find_library( if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") find_library( GUROBI_CXX_LIBRARY - NAMES gurobi_g++5.2 + NAMES gurobi_g++5.2 gurobi_g++8.5 HINTS ${GUROBI_DIR} $ENV{GUROBI_HOME} PATH_SUFFIXES lib) else() diff --git a/lib/coek/coek/CMakeLists.txt b/lib/coek/coek/CMakeLists.txt index 051c0085..a1b6d548 100644 --- a/lib/coek/coek/CMakeLists.txt +++ b/lib/coek/coek/CMakeLists.txt @@ -153,6 +153,7 @@ endif() # GUROBI LIBRARY # if(with_gurobi) + find_package(GUROBI REQUIRED) list(APPEND sources solvers/gurobi/gurobi.cpp) list(APPEND coek_compile_options -DWITH_GUROBI)