[Polly][CMake] Exclude isl_config from the polly-check-format target.
commitcae66e2590e8f2ee36a269f5a3e721e7fc55687d
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Mon, 15 May 2017 13:20:26 +0000 (15 13:20 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Mon, 15 May 2017 13:20:26 +0000 (15 13:20 +0000)
treee57e5fca1b2332e1d6518db3f20b5864cb4c5e84
parent0fcad8dfdf225b793760f7b7b238897fb301bbd9
[Polly][CMake] Exclude isl_config from the polly-check-format target.

Summary:
The custom `polly-check-format` target runs clang-format over all source files in the directory tree excluding lib/External. `isl_config.h` is a header file that is generated by CMake in the build directory, and it's not correctly formatted (which I also wouldn't consider necessary, as it is a generated file).

If the build directory is actually inside the Polly source directory (which it might be if you're building Polly out-of-tree), that check always fails. Hence this patch excludes this file from the check-format target.

Reviewers: Meinersbur, grosser

Reviewed By: grosser

Subscribers: mgorny, llvm-commits, pollydev

Tags: #polly

Differential Revision: https://reviews.llvm.org/D33192

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@303060 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt