aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Redondo <kde@david-redondo.de>2022-02-04 13:03:22 +0100
committerDavid Redondo <kde@david-redondo.de>2022-02-04 13:03:22 +0100
commit978d69628b1d9aec95ef97aedacd2ccd28613b7b (patch)
tree4cc82e6d2375cc1d8976ebe7833737aaa7bce3f5
parent4d31ec78f80d6add09dc80404470cfae7f2b13c7 (diff)
downloadkconfig-978d69628b1d9aec95ef97aedacd2ccd28613b7b.tar.gz
kconfig-978d69628b1d9aec95ef97aedacd2ccd28613b7b.tar.bz2
Fix build on Windows
Since we are not building the library but the source files we don't want the macro to expand to __declspec(dllimport).
-rw-r--r--autotests/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt
index 95a1200a..7b5a73b1 100644
--- a/autotests/CMakeLists.txt
+++ b/autotests/CMakeLists.txt
@@ -71,6 +71,7 @@ ecm_add_test(
NAME_PREFIX kconfiggui-
)
target_include_directories(kstandardshortcutwatchertest PRIVATE "$<TARGET_PROPERTY:KF5ConfigGui,INTERFACE_INCLUDE_DIRECTORIES>")
+target_compile_definitions(kstandardshortcutwatchertest PRIVATE "-DKCONFIGGUI_STATIC_DEFINE")
# These tests do a global cleanup of ~/.qttest, so they can't run in parallel
set_tests_properties(kconfigcore-kconfigtest PROPERTIES RUN_SERIAL TRUE)