We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21bd317 commit df32987Copy full SHA for df32987
include-or-build-gtest.cmake
@@ -9,11 +9,11 @@ set(prefix __ld_gtest)
9
# 1.11.0 introduced various matchers that can be used with EXPECT_THAT (e.g., ThrowsMessage)
10
set(required_version 1.11.0)
11
12
-pkg_check_modules(${prefix} gtest>=${required_version} IMPORTED_TARGET)
13
-
14
if(TARGET gtest)
15
__cmake_scripts_log("target gtest found, not setting up again")
16
else()
+ pkg_check_modules(${prefix} gtest>=${required_version} IMPORTED_TARGET)
+
17
if(${prefix}_FOUND)
18
__cmake_scripts_log("Using system gtest")
19
add_library(gtest ALIAS PkgConfig::${prefix})
0 commit comments