Commit 66e5c07b authored by Jesse Beder's avatar Jesse Beder
Browse files

Extend format build target to all build tools

parent edf8ebe2
......@@ -318,10 +318,8 @@ if(YAML_CPP_BUILD_TOOLS)
endif()
### Formatting
if(${CMAKE_BUILD_TOOL} MATCHES make OR ${CMAKE_BUILD_TOOL} MATCHES gmake)
get_property(all_sources GLOBAL PROPERTY SRCS_LIST)
add_custom_target(format
COMMAND clang-format --style=file -i ${all_sources}
COMMENT "Running clang-format"
VERBATIM)
endif()
\ No newline at end of file
get_property(all_sources GLOBAL PROPERTY SRCS_LIST)
add_custom_target(format
COMMAND clang-format --style=file -i ${all_sources}
COMMENT "Running clang-format"
VERBATIM)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment