add CMAKE_CXX_STANDARD to CMakeLists.txt
this fixes errors related to enabling C++11 like `no member named 'make_tuple' in namespace 'std'` and like `deleted function definitions are a C++11 extension` in googletest/googletest/include/gtest/internal/gtest-port.h
This commit is contained in:
parent
e588eb1ff9
commit
ac03919a37
@ -13,6 +13,10 @@ set(GOOGLETEST_VERSION 1.10.0)
|
|||||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.1")
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.1")
|
||||||
if(NOT CYGWIN AND NOT MSYS)
|
if(NOT CYGWIN AND NOT MSYS)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user