From c70ac40a005813cf9a724c92b28c9503896ed108 Mon Sep 17 00:00:00 2001 From: Jerry Turcios Date: Fri, 28 Sep 2018 14:55:43 -0400 Subject: [PATCH 1/2] Add C++11 support in the root CMakeLists.txt --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7732116..d5eba69a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ endif (POLICY CMP0048) project(googletest-distribution) set(GOOGLETEST_VERSION 1.9.0) +set(CMAKE_CXX_STANDARD 11) enable_testing() From e34583a96b4e7a6a92418820fcfde3072b884a62 Mon Sep 17 00:00:00 2001 From: Jerry Turcios Date: Sun, 30 Sep 2018 12:27:05 -0400 Subject: [PATCH 2/2] Add a cached variable to CMAKE_CXX_STANDARD --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5eba69a..b6b938f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ endif (POLICY CMP0048) project(googletest-distribution) set(GOOGLETEST_VERSION 1.9.0) -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 11 CACHE STRING "Set the C++ standard to be used for compiling") enable_testing()