aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/plugins/designer/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/plugins/designer/CMakeLists.txt b/sources/pyside6/plugins/designer/CMakeLists.txt
index f0eaaf32a..f886c7f36 100644
--- a/sources/pyside6/plugins/designer/CMakeLists.txt
+++ b/sources/pyside6/plugins/designer/CMakeLists.txt
@@ -22,7 +22,10 @@ target_sources(PySidePlugin PRIVATE
target_compile_definitions(PySidePlugin PRIVATE -DQT_NO_KEYWORDS=1)
-if(FORCE_LIMITED_API)
+# For Windows we use the limited API by default
+# See ShibokenHelpers.cmake::shiboken_check_if_limited_api() which is called always
+# with default FORCE_LIMITED_API set to TRUE for building libshiboken
+if(FORCE_LIMITED_API OR WIN32)
target_compile_definitions(PySidePlugin PRIVATE "-DPy_LIMITED_API=0x03090000")
endif()