From 66e5c07b4fee4a872451a549476055fc875ba68d Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Tue, 25 Mar 2014 22:01:35 -0500 Subject: [PATCH] Extend format build target to all build tools --- CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5d9444..fe6b2a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)