From be4ca80842c6c1d1063ff1c2e52da3e1420538c9 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Tue, 14 Feb 2017 15:18:44 +0100 Subject: [PATCH] build: Fix linking problem on non-OS-X platforms --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a5b55a450..ed953a7d2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -52,10 +52,10 @@ add_executable (task_executable main.cpp) add_executable (calc_executable calc.cpp) add_executable (lex_executable lex.cpp) -# Yes, 'task' is included twice, otherwise linking fails on assorted OSes. -target_link_libraries (task_executable task commands columns libshared task ${TASK_LIBRARIES}) -target_link_libraries (calc_executable task commands columns libshared task ${TASK_LIBRARIES}) -target_link_libraries (lex_executable task commands columns libshared task ${TASK_LIBRARIES}) +# Yes, 'task' (and hence libshared) is included twice, otherwise linking fails on assorted OSes. +target_link_libraries (task_executable task commands columns libshared task libshared ${TASK_LIBRARIES}) +target_link_libraries (calc_executable task commands columns libshared task libshared ${TASK_LIBRARIES}) +target_link_libraries (lex_executable task commands columns libshared task libshared ${TASK_LIBRARIES}) set_property (TARGET task_executable PROPERTY OUTPUT_NAME "task")