From: Magnus Jacobsson Date: Wed, 4 Aug 2021 09:04:58 +0000 (+0200) Subject: tred: CMake: link to the gvc lib instead of the common lib X-Git-Tag: 3.0.0~107^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5f922af96e547fd1f879859c424531865cdd0e3;p=graphviz tred: CMake: link to the gvc lib instead of the common lib The common lib is a static lib which is built into the shared gvc lib. An upcoming commit that changes tred.c to include utils.h instead of timing.h would otherwise cause these errors: C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cmd/tools/CMakeFiles/tred.dir/tred.c.obj:tred.c:(.text+0xb47): undefined reference to `__imp_start_timer' C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cmd/tools/CMakeFiles/tred.dir/tred.c.obj:tred.c:(.text+0xb7a): undefined reference to `__imp_elapsed_sec' --- diff --git a/cmd/tools/CMakeLists.txt b/cmd/tools/CMakeLists.txt index 95128229b..3be27f275 100644 --- a/cmd/tools/CMakeLists.txt +++ b/cmd/tools/CMakeLists.txt @@ -65,7 +65,7 @@ add_simple_tool(ccomps) add_simple_tool(gc) add_simple_tool(nop) add_simple_tool(tred) -target_link_libraries(tred common) # e.g. for start_timer +target_link_libraries(tred gvc) # e.g. for start_timer add_simple_tool(unflatten) # ================================ complex tools ===============================