summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-06-26 20:45:11 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-06-29 12:47:59 +0200
commit943340222e841904707dc4f3e08f0df57d2e5c28 (patch)
treeddafe167749aeb63dfc7c806a5aabc9e5c50df21 /configure.cmake
parent8df4caf554e81e7de9e0154a15544426e99acbbc (diff)
CMake: Generate qdevice.pri when cross-building
This adds the CMake equivalent to the classical -device-option key=value configure argument: -DQT_QMAKE_DEVICE_OPTIONS=key1=value1[;keyN=valueN] The keys and values get dumped verbatim into qdevice.pri. This patch also ports the machineTuple configure test. Its result is written into qdevice.pri as value for the GCC_MACHINE_DUMP variable. Change-Id: I29f2323fd87639fafaed99ec7446c7ee75504705 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index b229e4df2c..ce527743d5 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -14,6 +14,9 @@ qt_find_package(Libudev PROVIDED_TARGETS PkgConfig::Libudev MODULE_NAME global Q
#### Tests
+# machineTuple
+qt_config_compile_test_machine_tuple("machine tuple")
+
# cxx14
qt_config_compile_test(cxx14
LABEL "C++14 support"