summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChe-Hsun Liu <chehsunliu@gmail.com>2017-07-02 12:19:03 (GMT)
committerGitHub <noreply@github.com>2017-07-02 12:19:03 (GMT)
commit509f7fe84094dc632ba1794c1f9bd3a7c049d5fe (patch)
treec9efdf37149e88eb33fc260cc37f2b15dce9f485
parent4bab34d2084259cba67f3bfb51217c10d606e175 (diff)
downloadgoogletest-509f7fe84094dc632ba1794c1f9bd3a7c049d5fe.zip
googletest-509f7fe84094dc632ba1794c1f9bd3a7c049d5fe.tar.gz
googletest-509f7fe84094dc632ba1794c1f9bd3a7c049d5fe.tar.bz2
Update googletest README.md
Use `EXCLUDE_FROM_ALL` in `add_subdirectory` to prevent `make install` from including lots of headers from gtest/gmock. ``` add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL) ```
-rw-r--r--googletest/README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/README.md b/googletest/README.md
index 0a3474c..cdebd9d 100644
--- a/googletest/README.md
+++ b/googletest/README.md
@@ -161,7 +161,8 @@ Existing build's `CMakeLists.txt`:
# Add googletest directly to our build. This defines
# the gtest and gtest_main targets.
add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
- ${CMAKE_BINARY_DIR}/googletest-build)
+ ${CMAKE_BINARY_DIR}/googletest-build
+ EXCLUDE_FROM_ALL)
# The gtest/gtest_main targets carry header search path
# dependencies automatically when using CMake 2.8.11 or