Путь к файлу настройки для uncrustify
This commit is contained in:
parent
a747777174
commit
9f6551c259
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user