From: Kevin Funk Date: Tue, 13 Jun 2017 19:57:40 +0000 (+0200) Subject: CMake: tred: Make compile X-Git-Tag: 2.42.0~166^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f1d301620a51e743da684ddc49cf8af28aa4890;p=graphviz CMake: tred: Make compile ``` FAILED: cmd/tools/tred : && cc -fPIC -g cmd/tools/CMakeFiles/tred.dir/tred.c.o -o cmd/tools/tred -Wl,-rpath,/home/kfunk/devel/build/graphviz/lib/cgraph:/home/kfunk/devel/build/graphviz/lib/cdt: -rdynamic lib/cgraph/libcgraph.so.6.0.0 lib/ingraphs/libingraphs.a lib/cdt/libcdt.so.5.0.0 && : /home/kfunk/devel/src/graphviz/cmd/tools/tred.c:284: error: undefined reference to 'start_timer' /home/kfunk/devel/src/graphviz/cmd/tools/tred.c:287: error: undefined reference to 'elapsed_sec' ``` --- diff --git a/cmd/tools/CMakeLists.txt b/cmd/tools/CMakeLists.txt index 8efe75ff4..75e0f9149 100644 --- a/cmd/tools/CMakeLists.txt +++ b/cmd/tools/CMakeLists.txt @@ -55,6 +55,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 add_simple_tool(unflatten) # ================================ complex tools ===============================