From a9ab59f0bbfc15c419fab20a2401bc899137649c Mon Sep 17 00:00:00 2001 From: Mark Hansen Date: Mon, 2 Jan 2023 14:10:44 +1100 Subject: [PATCH] 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 --- cmd/dot/CMakeLists.txt | 2 +- cmd/smyrna/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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} ) -- 2.50.1