From 978d69628b1d9aec95ef97aedacd2ccd28613b7b Mon Sep 17 00:00:00 2001 From: David Redondo Date: Fri, 4 Feb 2022 13:03:22 +0100 Subject: 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). --- autotests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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_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) -- cgit v1.2.1