From: Mark Hansen Date: Mon, 2 Jan 2023 03:10:44 +0000 (+1100) Subject: dot_builtins: pass full path to GTS library to clang X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9ab59f0bbfc15c419fab20a2401bc899137649c;p=graphviz dot_builtins: pass full path to GTS library to clang Clang was having trouble finding homebrew GTS on my macOS. This is similar to a series of other changes I made to fix cmake builds on macOS previously (search the codebase for _LINK_LIBRARIES). Fixes #2334 --- diff --git a/cmd/dot/CMakeLists.txt b/cmd/dot/CMakeLists.txt index cef5a8882..d2ea43515 100644 --- a/cmd/dot/CMakeLists.txt +++ b/cmd/dot/CMakeLists.txt @@ -76,7 +76,7 @@ if(PkgConfig_FOUND) pkg_check_modules(GTS gts) if(GTS_FOUND) target_include_directories(dot_builtins SYSTEM PRIVATE ${GTS_INCLUDE_DIRS}) - target_link_libraries(dot_builtins PRIVATE ${GTS_LIBRARIES}) + target_link_libraries(dot_builtins PRIVATE ${GTS_LINK_LIBRARIES}) endif() pkg_check_modules(LASI lasi) diff --git a/cmd/smyrna/CMakeLists.txt b/cmd/smyrna/CMakeLists.txt index f42e0077a..8c262ca43 100644 --- a/cmd/smyrna/CMakeLists.txt +++ b/cmd/smyrna/CMakeLists.txt @@ -113,7 +113,7 @@ if(with_smyrna) ${GLUT_LIBRARIES} ${GTK2_LIBRARIES} ${GTKGLEXT_LIBRARIES} - ${GTS_LIBRARIES} + ${GTS_LINK_LIBRARIES} ${XRENDER_LIBRARIES} )