From 0bd6363e1c8b9b9dae02d67fde044f16bb5c4a35 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Sep 2013 15:40:19 -0400 Subject: [PATCH] Linking Voodoo - We have multiple inter-dependent libraries now, so linking is a pain. --- src/CMakeLists.txt | 2 +- src/parser/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11be3672d..6cc19805b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -53,7 +53,7 @@ add_library (task STATIC ${task_SRCS}) add_executable (task_executable main.cpp) # Yes, 'task' is included twice, other linking fails on CentOS. -target_link_libraries (task_executable task commands columns parser task ${TASK_LIBRARIES}) +target_link_libraries (task_executable task commands columns parser task commands columns ${TASK_LIBRARIES}) set_property (TARGET task_executable PROPERTY OUTPUT_NAME "task") diff --git a/src/parser/CMakeLists.txt b/src/parser/CMakeLists.txt index f3840748c..7237eb91a 100644 --- a/src/parser/CMakeLists.txt +++ b/src/parser/CMakeLists.txt @@ -15,8 +15,8 @@ add_library (parser STATIC ${parser_SRCS}) add_executable (parser_executable bnf.cpp) add_executable (args_executable args.cpp) -target_link_libraries (parser_executable columns commands task parser ${TASK_LIBRARIES}) -target_link_libraries (args_executable columns commands task parser ${TASK_LIBRARIES}) +target_link_libraries (parser_executable columns commands task parser columns commands task ${TASK_LIBRARIES}) +target_link_libraries (args_executable columns commands task parser columns commands task ${TASK_LIBRARIES}) set_property (TARGET parser_executable PROPERTY OUTPUT_NAME "parser") set_property (TARGET args_executable PROPERTY OUTPUT_NAME "args")