Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
66e5c07b
Commit
66e5c07b
authored
Mar 25, 2014
by
Jesse Beder
Browse files
Extend format build target to all build tools
parent
edf8ebe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
CMakeLists.txt
CMakeLists.txt
+5
-7
No files found.
CMakeLists.txt
View file @
66e5c07b
...
@@ -318,10 +318,8 @@ if(YAML_CPP_BUILD_TOOLS)
...
@@ -318,10 +318,8 @@ if(YAML_CPP_BUILD_TOOLS)
endif
()
endif
()
### Formatting
### Formatting
if
(
${
CMAKE_BUILD_TOOL
}
MATCHES make OR
${
CMAKE_BUILD_TOOL
}
MATCHES gmake
)
get_property
(
all_sources GLOBAL PROPERTY SRCS_LIST
)
get_property
(
all_sources GLOBAL PROPERTY SRCS_LIST
)
add_custom_target
(
format
add_custom_target
(
format
COMMAND clang-format --style=file -i
${
all_sources
}
COMMAND clang-format --style=file -i
${
all_sources
}
COMMENT
"Running clang-format"
COMMENT
"Running clang-format"
VERBATIM
)
VERBATIM
)
endif
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment