Use and recommend clang-format-11, not clang-format-10

Also:
- Fix the numbered list formatting in the README.md
- Describe the -DVULKAN_HPP_RUN_GENERATOR=ON option

Fixes: #1116
This commit is contained in:
David Neto
2021-10-25 12:30:32 -04:00
parent 95fbfbe36d
commit 938d9e60e0
3 changed files with 18 additions and 13 deletions

View File

@@ -43,12 +43,12 @@ if(CLANG_FORMAT_EXECUTABLE)
else ()
message(STATUS " Found clang-format version <" ${clangFormatVersion} ">.")
add_definitions(-DCLANG_FORMAT_EXECUTABLE="${CLANG_FORMAT_EXECUTABLE}")
if (clangFormatVersion VERSION_LESS 10.0.0)
if (clangFormatVersion VERSION_LESS 11.0.0)
message(STATUS " Using .clang-format version 7." )
file(READ ".clang-format_7" clangFormat)
else ()
message(STATUS " Using .clang-format version 10." )
file(READ ".clang-format_10" clangFormat)
message(STATUS " Using .clang-format version 11." )
file(READ ".clang-format_11" clangFormat)
endif ()
file(WRITE ".clang-format" ${clangFormat})
endif()