Fix cross-compiling (test discovery doesn't work when cross-compiling).

This commit is contained in:
Alexander Shaduri
2021-03-17 14:26:13 +04:00
parent 15ab09063b
commit a33d4109d1
+3 -1
View File
@@ -21,4 +21,6 @@ target_link_libraries(test_all PRIVATE
Catch2
)
catch_discover_tests(test_all)
if (NOT CMAKE_CROSSCOMPILING)
catch_discover_tests(test_all)
endif()