Skip to content

Commit

Permalink
test Gurobi v12 on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Dec 20, 2024
1 parent b0e8a08 commit d24a363
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions code/cmake/FindGUROBI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,38 @@ if (NOT GUROBI_FOUND)
"/Library/gurobi1200/macos_universal2/include"
"/Library/gurobi1003/macos_universal2/include"
"/Library/gurobi952/macos_universal2/include"
"/home/liangliang/dev/gurobi952/include"
"/home/geo3d/dev/gurobi1200/include"
"D:\\dev\\Gurobi-10.0.3\\win64\\include"
"D:\\dev\\Gurobi-9.5.2\\win64\\include"
)
)

set(SEARCH_PATHS_FOR_LIBRARIES
"$ENV{GUROBI_HOME}/lib"
"/Library/gurobi1200/macos_universal2/lib"
"/Library/gurobi1003/macos_universal2/lib"
"/Library/gurobi952/macos_universal2/lib"
"/home/liangliang/dev/gurobi952/lib"
"/home/geo3d/dev/gurobi1200/lib"
"D:\\dev\\Gurobi-10.0.3\\win64\\lib"
"D:\\dev\\Gurobi-9.5.2\\win64\\lib"
)
)

find_path(GUROBI_INCLUDE_DIR gurobi_c++.h
PATHS ${SEARCH_PATHS_FOR_HEADERS}
)
)


find_library(GUROBI_C_LIBRARY
NAMES gurobi120 gurobi100 libgurobi
PATHS ${SEARCH_PATHS_FOR_LIBRARIES}
)
)

find_library(GUROBI_CXX_LIBRARY_DEBUG
NAMES gurobi_c++ gurobi_c++mdd2017
PATHS ${SEARCH_PATHS_FOR_LIBRARIES}
)
)

find_library(GUROBI_CXX_LIBRARY_RELEASE
NAMES gurobi_c++ gurobi_c++md2017
PATHS ${SEARCH_PATHS_FOR_LIBRARIES}
)
)

# setup header file directories
set(GUROBI_INCLUDE_DIRS ${GUROBI_INCLUDE_DIR})
Expand All @@ -94,7 +92,7 @@ if (NOT GUROBI_FOUND)
debug ${GUROBI_CXX_LIBRARY_DEBUG}
optimized ${GUROBI_CXX_LIBRARY_RELEASE}
${GUROBI_C_LIBRARY}
)
)

endif ()

Expand All @@ -111,4 +109,4 @@ mark_as_advanced(
GUROBI_CXX_LIBRARY_DEBUG
GUROBI_CXX_LIBRARY_RELEASE
GUROBI_C_LIBRARY
)
)

0 comments on commit d24a363

Please sign in to comment.