aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry Turcios <jerryturcios08@gmail.com>2018-10-02 15:11:11 -0400
committerJerry Turcios <jerryturcios08@gmail.com>2018-10-02 15:11:11 -0400
commit1e893191c0a72f6c94bbd69acc39ce425594f36d (patch)
tree2a13b9807c73db38b9a7a9dbf20f3c655374956a
parent2e91bbcf6f33eb85451001be2d4c95cca86ea9fc (diff)
downloadgoogletest-1e893191c0a72f6c94bbd69acc39ce425594f36d.tar.gz
googletest-1e893191c0a72f6c94bbd69acc39ce425594f36d.tar.bz2
googletest-1e893191c0a72f6c94bbd69acc39ce425594f36d.zip
Add compilation option for C++11 in the root CMakeLists.txt
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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()