Add compilation option for C++11 in the root CMakeLists.txt

This commit is contained in:
Jerry Turcios 2018-10-02 15:11:11 -04:00
parent 2e91bbcf6f
commit 1e893191c0

View File

@ -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()