diff options
author | Abseil Team <absl-team@google.com> | 2020-02-12 20:41:54 (GMT) |
---|---|---|
committer | Mark Barolak <mbar@google.com> | 2020-02-13 17:05:32 (GMT) |
commit | 94f756749cdc6d20a12feee95b17e263a936a743 (patch) | |
tree | 36808413e5c92345d41551e3e70b85b3a605e638 | |
parent | 6f5fd0d7199b9a19faa9f499ecc266e6ae0329e7 (diff) | |
download | googletest-94f756749cdc6d20a12feee95b17e263a936a743.zip googletest-94f756749cdc6d20a12feee95b17e263a936a743.tar.gz googletest-94f756749cdc6d20a12feee95b17e263a936a743.tar.bz2 |
Export Test - Do Not Mergerefs/pull/2710/head05CC6081FCBD0071053DE78238E136B3
Remove the CMAKE_CXX_STANDARD from GoogleTest's CMakeLists.txt
This causes ABI issues since it can create a mixed-mode build. The
value should be inherited from the top-level build if it needs to be
set.
PiperOrigin-RevId: 294730724
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 755b8b7..d883409 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,11 +10,7 @@ endif (POLICY CMP0048) project(googletest-distribution) set(GOOGLETEST_VERSION 1.10.0) -if (CMAKE_VERSION VERSION_LESS "3.1") - add_definitions(-std=c++11) -else() - set(CMAKE_CXX_STANDARD 11) - set(CMAKE_CXX_STANDARD_REQUIRED ON) +if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.1") if(NOT CYGWIN AND NOT MSYS) set(CMAKE_CXX_EXTENSIONS OFF) endif() |