]> granicus.if.org Git - graphviz/commitdiff
Correct link library order for mm2gv
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 15 Sep 2020 11:58:55 +0000 (13:58 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Wed, 23 Sep 2020 06:37:52 +0000 (08:37 +0200)
The sparse lib depends on many of the libs that were listed before it.

An upcoming change to lib/gvc revealed this and without this change,
the following link error would occur:

../../lib/sparse/libsparse.a(SparseMatrix.c.o): In function `SparseMatrix_page_rank':
SparseMatrix.c:(.text+0x12471): undefined reference to `Verbose'

cmd/tools/CMakeLists.txt

index f0d876487601543bc76795032f13331abca80923..80e61102f79805febc0014c3b10a8c9718038e8d 100644 (file)
@@ -336,11 +336,11 @@ target_include_directories(mm2gv PRIVATE
 )
 
 target_link_libraries(mm2gv
+    sparse
     cgraph
     common
     gvc
     pathplan
-    sparse
 )
 
 tool_defaults(mm2gv)