diff options
author | Michael Kruse <llvm@meinersbur.de> | 2015-09-15 10:51:15 +0000 |
---|---|---|
committer | Michael Kruse <llvm@meinersbur.de> | 2015-09-15 10:51:15 +0000 |
commit | da8d6203f46ed4baaecdb096dcd46517d95f9fab (patch) | |
tree | 2cd6b58a500a85859693581509533c10b9ea3a40 | |
parent | d5b161a221ecb2292103aa603a47a90e394b7fda (diff) | |
download | bcm5719-llvm-da8d6203f46ed4baaecdb096dcd46517d95f9fab.tar.gz bcm5719-llvm-da8d6203f46ed4baaecdb096dcd46517d95f9fab.zip |
Fix after renamed CMake cache entry
LLVM_EXTERNAL_CLANG_BUILD was changed to LLVM_TOOL_CLANG_BUILD in
r242059.
llvm-svn: 247675
-rw-r--r-- | polly/test/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/polly/test/CMakeLists.txt b/polly/test/CMakeLists.txt index 2dfa1a864f1..cfb4d62a816 100644 --- a/polly/test/CMakeLists.txt +++ b/polly/test/CMakeLists.txt @@ -81,8 +81,11 @@ else (NOT DEFINED LLVM_MAIN_SRC_DIR) # Run polly-check-format as part of polly-check only if we are compiling with # clang, so clang-format is availbale. # if (TARGET clang-format) would be preferable, but this target is only added - # after Polly, i.e. there is no such target yet at this point. - if (LLVM_EXTERNAL_CLANG_BUILD) + # after Polly, i.e. there is no such target yet at this point. The CMake cache + # entry LLVM_TOOL_CLANG_BUILD will only be defined after clang has been + # configured at least once, i.e. format will be checked only after a rerun of + # CMake's configure. + if (LLVM_TOOL_CLANG_BUILD) add_dependencies(check-polly polly-check-format) endif () |