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:
parent
fe92568e66
commit
3039ff1390
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue