summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-28 16:56:47 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-28 17:57:04 +0100
commitf37a917e9ae8f50864fdbb00c828daba2fc54364 (patch)
tree723a8bf58f0b3a2f5ee8d685349063bd9740d9fe
parentc1ad91505523198490504b3363e6b610f60cfe2c (diff)
downloadrockbox-f37a917e9ae8f50864fdbb00c828daba2fc54364.tar.gz
rockbox-f37a917e9ae8f50864fdbb00c828daba2fc54364.zip
cmake: Disable QtTest discovery when cross compiling.
Change-Id: I46e2ad16f592f3adc9f01347e9fcda451c0b3a26
-rwxr-xr-xutils/cmake/QtTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/cmake/QtTest.cmake b/utils/cmake/QtTest.cmake
index d967ffd960..4214c7ddc3 100755
--- a/utils/cmake/QtTest.cmake
+++ b/utils/cmake/QtTest.cmake
@@ -86,6 +86,7 @@ The main function is :command:`qtest_discover_tests`.
86#]=======================================================================] 86#]=======================================================================]
87 87
88function(qtest_discover_tests TARGET) 88function(qtest_discover_tests TARGET)
89if(NOT CMAKE_CROSSCOMPILING)
89 cmake_parse_arguments( 90 cmake_parse_arguments(
90 "" 91 ""
91 "" 92 ""
@@ -120,6 +121,9 @@ function(qtest_discover_tests TARGET)
120 set_property(DIRECTORY APPEND PROPERTY TEST_INCLUDE_FILES 121 set_property(DIRECTORY APPEND PROPERTY TEST_INCLUDE_FILES
121 "${ctest_include_file}" 122 "${ctest_include_file}"
122 ) 123 )
124else()
125 message("-- Cross compiling, discovering unit tests disabled.")
126endif()
123endfunction() 127endfunction()
124 128
125 129