From 398380d390a084939c62d53a90573e552753e180 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 29 May 2011 00:10:06 -0400 Subject: [PATCH] Build - Need to link to libtask.a twice. Nice. --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 34e9102e8..468ede195 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -59,7 +59,10 @@ set (task_SRCS API.cpp API.h add_library (task STATIC ${task_SRCS}) add_executable (task_executable main.cpp) -target_link_libraries (task_executable task commands columns ${TASK_LIBRARIES}) + +# Yes, 'task' is included twice, other linking fails on CentOS. +target_link_libraries (task_executable task commands columns task ${TASK_LIBRARIES}) + set_property (TARGET task_executable PROPERTY OUTPUT_NAME "task") install (TARGETS task_executable DESTINATION ${TASK_BINDIR})