Skip to content
Snippets Groups Projects
Unverified Commit 0e9545e2 authored by René Fritze's avatar René Fritze
Browse files

[cmake,clang-format] skip formatting if no style file found

this closes #10
parent 8cd9ec09
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ macro(add_format)
# 'fix' relative source defs
set(_file ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
endif(NOT EXISTS ${_file})
add_custom_target("format_${fn}" ${ClangFormat_EXECUTABLE} -i -style=file ${_file} )
add_custom_target("format_${fn}" ${ClangFormat_EXECUTABLE} -i -style=file -fallback-style=none ${_file} )
add_dependencies( format "format_${fn}" )
endforeach(_file )
else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment