From 76b45b3df02ab00094539698aceff860f7164edd Mon Sep 17 00:00:00 2001 From: Gabriel M. Beddingfield Date: Tue, 28 Sep 2010 07:30:35 -0500 Subject: [PATCH 1/2] gui: link to lib target 'boxyseq' instead of .a file. The old method of linking to ${BoxySeq_SOURCE_DIR}/libboxyseq/libboxyseq.a failed in two cases: * Parallel builds (CMake doesn't calculate that boxyseq_gui depends on libboxyseq) * Out-of-tree builds (Looking for the lib in SOURCE_DIR instead of BINARY_DIR). By linking to the target name (boxyseq), CMake will handle all of this for us. --- boxyseq_gui/CMakeLists.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/boxyseq_gui/CMakeLists.txt b/boxyseq_gui/CMakeLists.txt index 4eb7e2d..19dcc34 100644 --- a/boxyseq_gui/CMakeLists.txt +++ b/boxyseq_gui/CMakeLists.txt @@ -15,4 +15,4 @@ file (GLOB BOXYSEQ_GUI_SOURCES *.c) add_executable(boxyseq_gui ${BOXYSEQ_GUI_SOURCES}) -target_link_libraries(boxyseq_gui ${BoxySeq_SOURCE_DIR}/libboxyseq/libboxyseq.a ${GTK2_LIBRARIES} ${JACK_LIBRARIES}) +target_link_libraries(boxyseq_gui boxyseq ${GTK2_LIBRARIES} ${JACK_LIBRARIES}) -- 1.7.0.4