From 0db04b47780dcbfe74e58c2f41fa9432ce3369cc Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 23 Mar 2013 01:04:48 +0000 Subject: [PATCH] cmake: Do not clang-format check the externally imported json library llvm-svn: 177795 --- polly/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt index dbfa00358f24..85fe823ab5d0 100644 --- a/polly/CMakeLists.txt +++ b/polly/CMakeLists.txt @@ -160,6 +160,8 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/polly/Config/config.h.cmake # Add target to check formatting of polly files file( GLOB_RECURSE files *.h *.cpp) +file( GLOB_RECURSE jsonfiles lib/JSON/*.h lib/JSON/*.cpp) +list( REMOVE_ITEM files ${jsonfiles} ) add_custom_command( OUTPUT formatting COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/utils/check_format.sh ${files}) add_custom_target(polly-check-format DEPENDS formatting)