We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acadfa3 commit 5161777Copy full SHA for 5161777
src/CMakeLists.txt
@@ -15,13 +15,14 @@ if(DEFINED METIS_HINT)
15
# This is used by the build script
16
# to avoid putting metis and gklib in the global path
17
target_include_directories(jet PRIVATE ${METIS_HINT}/include)
18
+set(METIS_LINK_HINT ${METIS_HINT}/lib)
19
endif()
20
21
# find metis and GKlib using optional hint
22
# did you know that find_library doesn't search the LD_LIBRARY_PATH?
-find_library(LIBMETIS metis HINTS ${METIS_HINT}/lib REQUIRED)
23
+find_library(LIBMETIS metis HINTS ${METIS_LINK_HINT} REQUIRED)
24
if(LINK_GKLIB)
-find_library(LIBGKLIB GKlib HINTS ${METIS_HINT}/lib REQUIRED)
25
+find_library(LIBGKLIB GKlib HINTS ${METIS_LINK_HINT} REQUIRED)
26
27
28
# link libjet (for downstream library consumers)
0 commit comments