Skip to content

Commit

Permalink
Merge pull request #3068 from z3ntu/gtest-pkgconfig-fix
Browse files Browse the repository at this point in the history
Fix gtest pkg-config detection
  • Loading branch information
AlanGriffiths authored Oct 8, 2023
2 parents bc4d39a + d73ff10 commit 0cb0178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindGtestGmock.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include(FindPackageHandleStandardArgs)

pkg_check_modules(GTEST QUIET "gtest >= 1.8.0")
pkg_check_modules(GTEST_MAIN QUIET "gtest_main >= 1.8.0")
pkg_check_modules(GTEST QUIET gtest>=1.8.0)
pkg_check_modules(GTEST_MAIN QUIET gtest_main>=1.8.0)
if (GTEST_FOUND AND GTEST_MAIN_FOUND)
# If we can find package configuration for gtest use it!
set(GTEST_LIBRARY ${GTEST_LIBRARIES})
Expand Down

0 comments on commit 0cb0178

Please sign in to comment.