dot_builtins: pass full path to GTS library to clang
authorMark Hansen <markhansen@google.com>
Mon, 2 Jan 2023 03:10:44 +0000 (14:10 +1100)
committerMark Hansen <markhansen@google.com>
Tue, 3 Jan 2023 08:06:03 +0000 (19:06 +1100)
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
cmd/smyrna/CMakeLists.txt

index cef5a8882374bf98cc616f7185b1038fb2d47595..d2ea43515611c0d6f9a8f8e79ab2a713bdb37032 100644 (file)
@@ -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)
index f42e0077af03bad1fc8a0061063b10c4e90e384a..8c262ca43da83d3d76e1a9cb2424ad57578ea3f2 100644 (file)
@@ -113,7 +113,7 @@ if(with_smyrna)
     ${GLUT_LIBRARIES}
     ${GTK2_LIBRARIES}
     ${GTKGLEXT_LIBRARIES}
-    ${GTS_LIBRARIES}
+    ${GTS_LINK_LIBRARIES}
     ${XRENDER_LIBRARIES}
   )