diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-28 16:56:47 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-28 17:57:04 +0100 |
commit | f37a917e9ae8f50864fdbb00c828daba2fc54364 (patch) | |
tree | 723a8bf58f0b3a2f5ee8d685349063bd9740d9fe | |
parent | c1ad91505523198490504b3363e6b610f60cfe2c (diff) | |
download | rockbox-f37a917e9ae8f50864fdbb00c828daba2fc54364.tar.gz rockbox-f37a917e9ae8f50864fdbb00c828daba2fc54364.zip |
cmake: Disable QtTest discovery when cross compiling.
Change-Id: I46e2ad16f592f3adc9f01347e9fcda451c0b3a26
-rwxr-xr-x | utils/cmake/QtTest.cmake | 4 |
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 | ||
88 | function(qtest_discover_tests TARGET) | 88 | function(qtest_discover_tests TARGET) |
89 | if(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 | ) |
124 | else() | ||
125 | message("-- Cross compiling, discovering unit tests disabled.") | ||
126 | endif() | ||
123 | endfunction() | 127 | endfunction() |
124 | 128 | ||
125 | 129 | ||