From 1e893191c0a72f6c94bbd69acc39ce425594f36d Mon Sep 17 00:00:00 2001 From: Jerry Turcios Date: Tue, 2 Oct 2018 15:11:11 -0400 Subject: [PATCH] Add compilation option for C++11 in the root CMakeLists.txt --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6b938f2..e8554748 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,8 @@ endif (POLICY CMP0048) project(googletest-distribution) set(GOOGLETEST_VERSION 1.9.0) -set(CMAKE_CXX_STANDARD 11 CACHE STRING "Set the C++ standard to be used for compiling") + +add_compile_options(-std=c++11) enable_testing()