diff --git a/MyxCMake/modules/MyxCMakeFormatSources.cmake b/MyxCMake/modules/MyxCMakeFormatSources.cmake index 17c800b..63d0111 100644 --- a/MyxCMake/modules/MyxCMakeFormatSources.cmake +++ b/MyxCMake/modules/MyxCMakeFormatSources.cmake @@ -17,8 +17,8 @@ function(myx_cmake_format_sources target) find_program(UNCRUSTIFY_EXE NAMES uncrustify) if(UNCRUSTIFY_EXE) - if(EXISTS ${CMAKE_SOURCE_DIR}/files/etc/uncrustify.cfg) - list(APPEND UNCRUSTIFY_OPTS -c ${CMAKE_SOURCE_DIR}/files/etc/uncrustify.cfg) + if(EXISTS ${CMAKE_SOURCE_DIR}/.uncrustify.cfg) + list(APPEND UNCRUSTIFY_OPTS -c ${CMAKE_SOURCE_DIR}/.uncrustify.cfg) endif() # cmake-format: off add_custom_target(${target}-check-format-sources-uncrustify