Skip to content

Commit

Permalink
Updating logic for finding gurobi
Browse files Browse the repository at this point in the history
  • Loading branch information
whart222 committed Jun 19, 2024
1 parent bdb115c commit db064fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindGUROBI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions lib/coek/coek/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db064fc

Please sign in to comment.