Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
3bb00b7e
Unverified
Commit
3bb00b7e
authored
Oct 23, 2018
by
Gennadiy Civil
Committed by
GitHub
Oct 23, 2018
Browse files
Merge pull request #1929 from goatshriek/cmake-cxx11-flag
add documentation of manual c++11 specification
parents
7b6b3be3
9b637237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
googletest/README.md
googletest/README.md
+9
-0
No files found.
googletest/README.md
View file @
3bb00b7e
...
@@ -192,6 +192,15 @@ Google Test already has a CMake option for this: `gtest_force_shared_crt`
...
@@ -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
Enabling this option will make gtest link the runtimes dynamically too, and
match the project in which it is included.
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
### Legacy Build Scripts
Before settling on CMake, we have been providing hand-maintained build
Before settling on CMake, we have been providing hand-maintained build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment