aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2018-10-23 22:32:15 -0400
committerGitHub <noreply@github.com>2018-10-23 22:32:15 -0400
commit3bb00b7ead35ca3a9b5817ce1ab78050fe6be0e3 (patch)
treef88b0e4bfc353ec3de22f3e121e780164848380e
parent7b6b3be34241dfa9fdfd53797734bdc18683c50b (diff)
parent9b637237bd7fffd559625fa04285ea5bb3aac426 (diff)
downloadgoogletest-3bb00b7ead35ca3a9b5817ce1ab78050fe6be0e3.tar.gz
googletest-3bb00b7ead35ca3a9b5817ce1ab78050fe6be0e3.tar.bz2
googletest-3bb00b7ead35ca3a9b5817ce1ab78050fe6be0e3.zip
Merge pull request #1929 from goatshriek/cmake-cxx11-flag
add documentation of manual c++11 specification
-rw-r--r--googletest/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/googletest/README.md b/googletest/README.md
index 713cb673..133f6859 100644
--- a/googletest/README.md
+++ b/googletest/README.md
@@ -192,6 +192,15 @@ Google Test already has a CMake option for this: `gtest_force_shared_crt`
Enabling this option will make gtest link the runtimes dynamically too, and
match the project in which it is included.
+#### C++ Standard Version
+
+An environment that supports C++11 is required in order to successfully build
+Google Test. One way to ensure this is to specify the standard in the top-level
+project, for example by using the `set(CMAKE_CXX_STANDARD 11)` command. If this
+is not feasible, for example in a C project using Google Test for validation,
+then it can be specified by adding it to the options for cmake via the
+`DCMAKE_CXX_FLAGS` option.
+
### Legacy Build Scripts
Before settling on CMake, we have been providing hand-maintained build