Skip to content

Commit 30d4c30

Browse files
committed
Add documentation for BUILD_GMOCK and BUILD_GTEST options.
1 parent 0126eba commit 30d4c30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ are only available for versions later than `1.7.0-hunter-11`.
4242
the compilation of the package may fail when copying the license file. This happens for versions later than `1.7.0-hunter-11`.
4343
To fix the problem set the path to the license file in your local `config.cmake` by using `hunter_config( GTest GIT_SUBMODULE <mySubmodulePath> CMAKE_ARGS HUNTER_INSTALL_LICENSE_FILES=googletest/LICENSE)`.
4444

45+
* If you do not need the **GMock** package, you can use `hunter_config(GTest VERSION <your_version> CMAKE_ARGS BUILD_GMOCK=OFF BUILD_GTEST=ON )` to only build
46+
the **GTest** package.
4547

4648
# Google Test #
4749

0 commit comments

Comments
 (0)