Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-12 14:12:57 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-13 16:38:19 +0200
commit0f2710a9f8ca48eea36c2cf5fc4abfdfaa492bb4 (patch)
treeeaafa2e8b0308f1cc95faf94cca2c086b981af21 /sources
parentf4d844278b5a41f04bbce0669319279cf19a799e (diff)
Pass CMAKE_SYSTEM_NAME as platform argument to shiboken6HEADdev
Task-number: PYSIDE-3105 Change-Id: I2d1adb0b7b819caab09e72e382a9dc0f964fa14d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside6/cmake/PySideSetup.cmake1
-rw-r--r--sources/shiboken6/tests/CMakeLists.txt3
2 files changed, 3 insertions, 1 deletions
diff --git a/sources/pyside6/cmake/PySideSetup.cmake b/sources/pyside6/cmake/PySideSetup.cmake
index 45a63a1a0..a3bc1c738 100644
--- a/sources/pyside6/cmake/PySideSetup.cmake
+++ b/sources/pyside6/cmake/PySideSetup.cmake
@@ -246,6 +246,7 @@ ENDIF()
set(GENERATOR_EXTRA_FLAGS
${SHIBOKEN_GENERATOR_EXTRA_FLAGS}
${debug_level}
+ "--platform=${CMAKE_SYSTEM_NAME}"
${UNOPTIMIZE}
--generator-set=shiboken
--enable-parent-ctor-heuristic
diff --git a/sources/shiboken6/tests/CMakeLists.txt b/sources/shiboken6/tests/CMakeLists.txt
index 05f6e9e60..37b80238f 100644
--- a/sources/shiboken6/tests/CMakeLists.txt
+++ b/sources/shiboken6/tests/CMakeLists.txt
@@ -23,7 +23,8 @@ else()
message(STATUS "Tests will be generated using the protected hack!")
set(GENERATOR_EXTRA_FLAGS )
endif()
-list(APPEND GENERATOR_EXTRA_FLAGS ${SHIBOKEN_GENERATOR_EXTRA_FLAGS} ${debug_level})
+list(APPEND GENERATOR_EXTRA_FLAGS ${SHIBOKEN_GENERATOR_EXTRA_FLAGS} ${debug_level}
+ "--platform=${CMAKE_SYSTEM_NAME}")
add_subdirectory(minimalbinding)
if(NOT DEFINED MINIMAL_TESTS)