Skip to content

Commit

Permalink
chore: Check that both gtest and gmock exist for tests.
Browse files Browse the repository at this point in the history
We used to assume gtest installation includes gmock, but some users may
have only gtest and not gmock.

Fixes #2636.
  • Loading branch information
iphydf committed Feb 3, 2024
1 parent 4201066 commit 8b05296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b05296

Please sign in to comment.