mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Extend format build target to all build tools
This commit is contained in:
@@ -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()
|
Reference in New Issue
Block a user