]> granicus.if.org Git - graphviz/commitdiff
Fix math library not linked with lib/sparse and remove from gvpack
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 18 Sep 2020 09:11:44 +0000 (11:11 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Wed, 23 Sep 2020 06:37:52 +0000 (08:37 +0200)
The gvpack tool only uses math functions indirectly through other
libraries including plugin/neato_layout which use lib/sparse.

cmd/tools/CMakeLists.txt
lib/sparse/CMakeLists.txt

index 5e02caa31b4a4c2b774d365207072f7eb1b038b2..f0d876487601543bc76795032f13331abca80923 100644 (file)
@@ -270,11 +270,6 @@ target_link_libraries(gvpack
     ingraphs
 )
 
-# Link to math library
-if (UNIX)
-    target_link_libraries(gvpack m)
-endif (UNIX)
-
 tool_defaults(gvpack)
 
 # =================================== gxl2gv ===================================
index 5eea9dc883dcec36692d967b07c33ba676fc16c4..7323b46c4fc980e36a3dc7eb0b15de1d5048b30f 100644 (file)
@@ -36,3 +36,7 @@ target_include_directories(sparse PRIVATE
     ${GRAPHVIZ_LIB_DIR}/common
     ${GRAPHVIZ_LIB_DIR}/sfdpgen
 )
+
+target_link_libraries(sparse
+    ${MATH_LIB}
+)