aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-12 14:36:11 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-18 14:54:34 +0200
commit374bd2bde5f79e7c0fd2fc990f670f143d31c120 (patch)
treed410da85ed55d705ed21ddbdf7fa7bb096ec2754 /sources/pyside6/tests
parent194608527a0e4168f5c4cee235330c684c556ea8 (diff)
Remove hard-coded Q_OS_ defines from the CMake files
The hard-coded ENABLE_ and Q_OS_ do not work for cross-compiling. They are in fact a left-over from the pre-clang code parser. Clang is actually able to set the right defines when parsing qsystemdetection.h if the correct target is set. pyside6_global.h then no longer needs to be configured by CMake. Task-number: PYSIDE-3105 Change-Id: I640ab9e254b9ba35d5b7194001f5700911a8d421 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/tests')
-rw-r--r--sources/pyside6/tests/CMakeLists.txt2
-rw-r--r--sources/pyside6/tests/QtDBus/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/tests/CMakeLists.txt b/sources/pyside6/tests/CMakeLists.txt
index 539e1aea8..38042533d 100644
--- a/sources/pyside6/tests/CMakeLists.txt
+++ b/sources/pyside6/tests/CMakeLists.txt
@@ -68,6 +68,6 @@ foreach(shortname IN LISTS all_module_shortnames)
endforeach()
#platform specific
-if (ENABLE_MAC)
+if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
add_subdirectory(mac)
endif ()
diff --git a/sources/pyside6/tests/QtDBus/CMakeLists.txt b/sources/pyside6/tests/QtDBus/CMakeLists.txt
index bf2d2105a..e618fd7b5 100644
--- a/sources/pyside6/tests/QtDBus/CMakeLists.txt
+++ b/sources/pyside6/tests/QtDBus/CMakeLists.txt
@@ -1,6 +1,6 @@
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
-if(ENABLE_UNIX)
+if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
PYSIDE_TEST(test_dbus.py)
endif()