Skip to content

Commit

Permalink
Update Findglpk.cmake to find HINTS x86_64-linux-gnu directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandaisb committed Apr 29, 2024
1 parent 865c8ac commit 6c458fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeModules/Findglpk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (GLPK_INC AND GLPK_LIB)
else()
if(NOT WIN32)
find_path (GLPK_INC NAMES glpk.h PATH_SUFFIXES include)
find_path (GLPK_LIB NAMES libglpk.so libglpk.dylib PATH_SUFFIXES lib)
find_path (GLPK_LIB NAMES libglpk.so libglpk.dylib PATH_SUFFIXES lib HINTS /usr/lib/x86_64-linux-gnu)

if (GLPK_INC AND GLPK_LIB)
message (STATUS "==>GLPK FOUND : GLPK_INC=${GLPK_INC} GLPK_LIB=${GLPK_LIB}")
Expand All @@ -22,4 +22,4 @@ else()
#set_target_properties (tetgen::tetgen PROPERTIES
# INTERFACE_INCLUDE_DIRECTORIES ${GLPK_INC}
# IMPORTED_LOCATION ${TETGEN_LIBRARY})
endif (GLPK_INC AND GLPK_LIB)
endif (GLPK_INC AND GLPK_LIB)

0 comments on commit 6c458fb

Please sign in to comment.