From 3cb4c615990b52d40564281a862b4e5a19fc7a1c Mon Sep 17 00:00:00 2001 From: David Faure Date: Sat, 4 Feb 2017 18:46:24 +0100 Subject: Fix linking on Windows: don't link kentrymaptest to KConfigCore. It's not needed, this is purely a test for the standalone KEntryMap class. --- autotests/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'autotests') diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 96c7b65e..c1ae1de0 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -20,8 +20,9 @@ endif() set(kentrymaptest_SRCS kentrymaptest.cpp ../src/core/kconfigdata.cpp) ecm_add_test(${kentrymaptest_SRCS} TEST_NAME kentrymaptest - LINK_LIBRARIES KF5::ConfigCore Qt5::Test + LINK_LIBRARIES Qt5::Test ) +target_include_directories(kentrymaptest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../src/core) # compile KConfigUtils into the test since it's not exported set(test_kconfigutils_SRCS test_kconfigutils ../src/kconf_update/kconfigutils.cpp) -- cgit v1.2.1