1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

Don't discover tests when cross-compiling w/o an emulator (#5197)

This commit is contained in:
Mike Gelfand 2023-03-11 12:42:56 +00:00 committed by GitHub
parent fe92568e66
commit 3039ff1390
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,9 +77,14 @@ target_link_libraries(libtransmission-test
libevent::event
WideInteger::WideInteger)
gtest_discover_tests(libtransmission-test
TEST_PREFIX "LT."
)
if(NOT CMAKE_CROSSCOMPILING OR CMAKE_CROSSCOMPILING_EMULATOR)
gtest_discover_tests(libtransmission-test
TEST_PREFIX "LT.")
else()
add_test(
NAME libtransmission-test
COMMAND libtransmission-test)
endif()
add_custom_command(
TARGET libtransmission-test