From c2e349f1c38b55fd12f8ae537e754fa6658ab631 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 01 1月 2024 20:21:34 +0800 Subject: [PATCH] Tested 5.12.8 --- src/core/CMakeLists.txt | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index c00cea0..ddede41 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -65,7 +65,9 @@ endif() endif() -if(TRUE) +set(_sync_include_options) + +if(QWINDOWKIT_ENABLE_STYLE_AGENT) list(APPEND _src style/styleagent.h style/styleagent_p.h @@ -79,6 +81,8 @@ else() list(APPEND _src style/styleagent_linux.cpp) endif() +else() + list(APPEND _sync_include_options EXCLUDE "style/\\.+") endif() qwk_add_library(${PROJECT_NAME} AUTOGEN @@ -89,6 +93,7 @@ QT_INCLUDE_PRIVATE Core Gui INCLUDE_PRIVATE kernel contexts shared PREFIX QWK_CORE + SYNC_INCLUDE_OPTIONS ${_sync_include_options} ) set_target_properties(${PROJECT_NAME} PROPERTIES -- Gitblit v1.9.1