From 5c04046acae6e61280fba7fef31401edd7c36087 Mon Sep 17 00:00:00 2001
From: Dylan Liu <312902918@qq.com>
Date: 周五, 23 5月 2025 16:04:20 +0800
Subject: [PATCH] QWKCore/cocoawindowcontext: Use typeId() instead of type() in Qt 6.0+. (#181)

---
 share/install.cmake |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/share/install.cmake b/share/install.cmake
index 0080395..1e64011 100644
--- a/share/install.cmake
+++ b/share/install.cmake
@@ -77,6 +77,12 @@
     to_dos_separator(MSBUILD_QWK_INSTALL_LIBDIR)
     to_dos_separator(MSBUILD_QWK_INSTALL_INCDIR)
 
+    if(QWINDOWKIT_BUILD_STATIC)
+        set(MSBUILD_QWK_STATIC_MACRO 
+            "<PreprocessorDefinitions>QWK_CORE_STATIC;QWK_WIDGETS_STATIC;QWK_QUICK_STATIC</PreprocessorDefinitions>"
+        )
+    endif()
+
     configure_file(${CMAKE_CURRENT_LIST_DIR}/msbuild/QWindowKit.props.in
         ${_build_data_dir}/msbuild/QWindowKit.props
         @ONLY

--
Gitblit v1.9.1