[cmake] Add polly-isl-test dependency to lit tests.
authorMichael Kruse <llvm@meinersbur.de>
Sun, 16 Oct 2016 18:22:02 +0000 (18:22 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Sun, 16 Oct 2016 18:22:02 +0000 (18:22 +0000)
lit recursively iterates through the test subdirectories and finds the ISL
unittest. For this test to work, the polly-isl-test executable needs to be
compiled.

Add the polly-isl-test dependency to POLLY_TEST_DEPS. This makes check-polly and
check-polly-tests work from a fresh build directory.

llvm-svn: 284339

polly/test/CMakeLists.txt

index 460c870..f905b17 100644 (file)
@@ -20,7 +20,7 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
   # We are building polly out of tree, adjust the settings.
   # FIXME: FileCheck is not available in llvm install directory at the moment.
   set(LLVM_LIT ${LLVM_INSTALL_ROOT}/bin/llvm-lit)
-  set(POLLY_TEST_DEPS LLVMPolly)
+  set(POLLY_TEST_DEPS LLVMPolly polly-isl-test)
   if (POLLY_GTEST_AVAIL)
     list(APPEND POLLY_TEST_DEPS PollyUnitTests)
   endif ()