tests: Don't run catch_discover_tests when cross-compiling to a different OS

This commit is contained in:
OpenSauce04 2026-04-15 19:50:00 +01:00 committed by OpenSauce
parent f902010f04
commit ca99574700

View file

@ -36,7 +36,7 @@ if (ENABLE_LIBRETRO)
endif()
add_test(NAME tests COMMAND tests)
if(NOT ANDROID)
if(NOT ANDROID AND (CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME))
catch_discover_tests(tests)
endif()