forked from len0rd/rockbox
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)
|
function(qtest_discover_tests TARGET)
|
||||||
|
if(NOT CMAKE_CROSSCOMPILING)
|
||||||
cmake_parse_arguments(
|
cmake_parse_arguments(
|
||||||
""
|
""
|
||||||
""
|
""
|
||||||
|
@ -120,6 +121,9 @@ function(qtest_discover_tests TARGET)
|
||||||
set_property(DIRECTORY APPEND PROPERTY TEST_INCLUDE_FILES
|
set_property(DIRECTORY APPEND PROPERTY TEST_INCLUDE_FILES
|
||||||
"${ctest_include_file}"
|
"${ctest_include_file}"
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
message("-- Cross compiling, discovering unit tests disabled.")
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue