Browse Source

fix wrong name in to find clang-format

develop
Eyck Jentzsch 4 weeks ago
parent
commit
8660c2c4ef
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      cmake/FindClangFormat.cmake

+ 3
- 3
cmake/FindClangFormat.cmake View File

@@ -13,10 +13,10 @@ if(CLANG_FORMAT_ROOT_DIR)
PATHS
"${CLANG_FORMAT_ROOT_DIR}"
NO_DEFAULT_PATH)
else()
find_program(CLANG_FORMAT_BIN NAMES ${CLANG_FORMAT_BIN_NAME})
endif()

find_program(CLANG_FORMAT_BIN NAMES ${CLANG_FORMAT_BIN_NAME})

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
ClangFormat
@@ -26,7 +26,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(
mark_as_advanced(
CLANG_FORMAT_BIN)

if(CLANG_FORMAT_FOUND)
if(ClangFormat_FOUND)
# A CMake script to find all source files and setup clang-format targets for them
include(clang-format)
else()

Loading…
Cancel
Save