From: Magnus Jacobsson Date: Tue, 15 Sep 2020 11:58:55 +0000 (+0200) Subject: Correct link library order for mm2gv X-Git-Tag: 2.46.0~20^2^2~68^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1990071875258a60000b70daac968d2b7380b5e0;p=graphviz Correct link library order for mm2gv 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' --- diff --git a/cmd/tools/CMakeLists.txt b/cmd/tools/CMakeLists.txt index f0d876487..80e61102f 100644 --- a/cmd/tools/CMakeLists.txt +++ b/cmd/tools/CMakeLists.txt @@ -336,11 +336,11 @@ target_include_directories(mm2gv PRIVATE ) target_link_libraries(mm2gv + sparse cgraph common gvc pathplan - sparse ) tool_defaults(mm2gv)