diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-09-01 17:08:48 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-09-01 18:35:18 +0200 |
commit | 87d05252acc4ed94d24150eabb2dd1a1f700f46f (patch) | |
tree | 8484df389def7b92ff92ac5401adeb3450f9bb54 | |
parent | db9dd0ea43f2140e0df72d05861939ee1cb98053 (diff) | |
download | libquotient-87d05252acc4ed94d24150eabb2dd1a1f700f46f.tar.gz libquotient-87d05252acc4ed94d24150eabb2dd1a1f700f46f.zip |
CMakeLists: allow to pass clang-format options in CLANG_FORMAT
This supersedes passing clang-format options in a separate
CLANG_FORMAT_ARGS CMake variable.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e5c1932..22951faa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -198,7 +198,7 @@ if (API_GENERATION_ENABLED) if (NOT CLANG_FORMAT) set(CLANG_FORMAT clang-format) endif() - get_filename_component(ABS_CLANG_FORMAT "${CLANG_FORMAT}" PROGRAM) + get_filename_component(ABS_CLANG_FORMAT "${CLANG_FORMAT}" PROGRAM PROGRAM_ARGS CLANG_FORMAT_ARGS) if (ABS_CLANG_FORMAT) set(API_FORMATTING_ENABLED 1) message( STATUS "clang-format is at ${ABS_CLANG_FORMAT}") |