mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
cmake: Disable QtTest discovery when cross compiling.
Change-Id: I46e2ad16f592f3adc9f01347e9fcda451c0b3a26
This commit is contained in:
parent
c1ad915055
commit
f37a917e9a
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,7 @@ The main function is :command:`qtest_discover_tests`.
|
|||
#]=======================================================================]
|
||||
|
||||
function(qtest_discover_tests TARGET)
|
||||
if(NOT CMAKE_CROSSCOMPILING)
|
||||
cmake_parse_arguments(
|
||||
""
|
||||
""
|
||||
|
@ -120,6 +121,9 @@ function(qtest_discover_tests TARGET)
|
|||
set_property(DIRECTORY APPEND PROPERTY TEST_INCLUDE_FILES
|
||||
"${ctest_include_file}"
|
||||
)
|
||||
else()
|
||||
message("-- Cross compiling, discovering unit tests disabled.")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue