mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Check that both gtest and gmock exist for tests.
We used to assume gtest installation includes gmock, but some users may have only gtest and not gmock. Fixes #2636.
This commit is contained in:
parent
42010660e1
commit
8b05296a78
|
@ -527,7 +527,7 @@ endfunction()
|
|||
|
||||
# The actual unit tests follow.
|
||||
#
|
||||
if(GTEST_FOUND)
|
||||
if(TARGET GTest::gtest AND TARGET GTest::gmock)
|
||||
unit_test(toxav ring_buffer)
|
||||
unit_test(toxav rtp)
|
||||
unit_test(toxcore DHT)
|
||||
|
|
Loading…
Reference in New Issue
Block a user