diff --git a/README.md b/README.md index 09fcfab2..ced5b308 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,11 @@ Here is a full example: ```cmake cmake_minimum_required(VERSION 3.16) -# set a default CXX standard used by the external tools like clang-tidy and cppcheck +# uncomment to set a default CXX standard for the external tools like clang-tidy and cppcheck +# and the targets that do not specify a standard. +# If not set, the latest supported standard for your compiler is used # You can later set fine-grained standards for each target using `target_compile_features` -set(CMAKE_CXX_STANDARD 17) +# set(CMAKE_CXX_STANDARD 17) # Add ProjectOptions v0.6.0 # https://github.com/aminya/ProjectOptions @@ -129,9 +131,11 @@ However, if you still want to change the CMake options on the fly (e.g. to enabl ```cmake cmake_minimum_required(VERSION 3.16) -# set a default CXX standard used by the external tools like clang-tidy and cppcheck +# uncomment to set a default CXX standard for the external tools like clang-tidy and cppcheck +# and the targets that do not specify a standard. +# If not set, the latest supported standard for your compiler is used # You can later set fine-grained standards for each target using `target_compile_features` -set(CMAKE_CXX_STANDARD 17) +# set(CMAKE_CXX_STANDARD 17) # Add ProjectOptions v0.6.0 # https://github.com/aminya/ProjectOptions