Skip to content

Commit

Permalink
chore: update docs about the default standard
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 14, 2021
1 parent ab1d3ab commit 01efe55
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01efe55

Please sign in to comment.