Путь к файлу настройки для uncrustify

This commit is contained in:
Andrei Astafev 2021-12-10 16:18:27 +03:00
parent a747777174
commit 9f6551c259

View File

@ -17,8 +17,8 @@ function(myx_cmake_format_sources target)
find_program(UNCRUSTIFY_EXE NAMES uncrustify) find_program(UNCRUSTIFY_EXE NAMES uncrustify)
if(UNCRUSTIFY_EXE) if(UNCRUSTIFY_EXE)
if(EXISTS ${CMAKE_SOURCE_DIR}/files/etc/uncrustify.cfg) if(EXISTS ${CMAKE_SOURCE_DIR}/.uncrustify.cfg)
list(APPEND UNCRUSTIFY_OPTS -c ${CMAKE_SOURCE_DIR}/files/etc/uncrustify.cfg) list(APPEND UNCRUSTIFY_OPTS -c ${CMAKE_SOURCE_DIR}/.uncrustify.cfg)
endif() endif()
# cmake-format: off # cmake-format: off
add_custom_target(${target}-check-format-sources-uncrustify add_custom_target(${target}-check-format-sources-uncrustify