Export Test - Do Not Merge
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
This commit is contained in:
parent
6f5fd0d719
commit
94f756749c
|
@ -10,11 +10,7 @@ endif (POLICY CMP0048)
|
||||||
project(googletest-distribution)
|
project(googletest-distribution)
|
||||||
set(GOOGLETEST_VERSION 1.10.0)
|
set(GOOGLETEST_VERSION 1.10.0)
|
||||||
|
|
||||||
if (CMAKE_VERSION VERSION_LESS "3.1")
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.1")
|
||||||
add_definitions(-std=c++11)
|
|
||||||
else()
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
if(NOT CYGWIN AND NOT MSYS)
|
if(NOT CYGWIN AND NOT MSYS)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user