We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74c0bcb commit f5c7b8cCopy full SHA for f5c7b8c
.build/install-gtest
@@ -71,8 +71,10 @@ if [ "$gtest_version_tag" = release-1.8.1 ]; then
71
fi
72
mkdir build
73
cd build
74
-# Configure - build only GoogleTest, not GoogleMock
75
-cmake .. -DBUILD_GMOCK=OFF
+# Configure - build only GoogleTest, not GoogleMock.
+# CMAKE_POLICY_VERSION_MINIMUM is a workaround for GoogleTest v1.8.1 (which sets `cmake_minimum_required` to `2.8.8`)
76
+# to make it work with CMake 4.0+, which removed compatibility with CMake < 3.5.
77
+cmake .. -DBUILD_GMOCK=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
78
# Build
79
make
80
# Install
0 commit comments