From b3bf5886b49024406575e3e39ba8a637a5efe89b Mon Sep 17 00:00:00 2001 From: Andreas Hartmetz Date: Sat, 23 Apr 2011 16:12:15 +0200 Subject: [PATCH] Move add_subdirectory(tests) to where Nepomuk has been found. The tests were using NEPOMUK_FOO_LIBRARIES variables that were, at least partially, not defined. Didn't link with gold linker. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 609eb8537..bc880bb67 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,3 @@ -add_subdirectory(tests) - macro_optional_find_package(Nepomuk) macro_log_feature(Nepomuk_FOUND "Nepomuk" "Nepomuk" "http://www.kde.org" FALSE "" "For adding desktop-wide tagging support to dolphin") macro_bool_to_01(Nepomuk_FOUND HAVE_NEPOMUK) @@ -12,6 +10,8 @@ if (Nepomuk_FOUND) include_directories( ${SOPRANO_INCLUDE_DIR} ${NEPOMUK_INCLUDE_DIR} ) endif (Nepomuk_FOUND) +add_subdirectory(tests) + ########### next target ############### set(dolphinprivate_LIB_SRCS -- 2.47.3