[CMake] Fix polly-isl-test execution in out-of-LLVM-tree builds.
authorMichael Kruse <llvm@meinersbur.de>
Sat, 22 Apr 2017 23:02:53 +0000 (23:02 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Sat, 22 Apr 2017 23:02:53 +0000 (23:02 +0000)
commitabf05b18dbcdfa6990a480d8e351bddd2a90e069
treea514a008ee821f5bf9a76a02f6d3956bdddcce2a
parent9c19d1f3aa0c14ae04a9e94b11e5c8519698f9c9
[CMake] Fix polly-isl-test execution in out-of-LLVM-tree builds.

The isl unittest modified its PATH variable to point to the LLVM bin dir.
When building out-of-LLVM-tree, it does not contain the
polly-isl-test executable, hence the test fails.

Ensure that the polly-isl-test is written to a bin directory in the
build root, just like it would happen in an inside-LLVM build.
Then, change PATH to include that dir such that the executable in it
is prioritized before any other location.

llvm-svn: 301096
polly/CMakeLists.txt
polly/test/UnitIsl/lit.cfg
polly/test/UnitIsl/lit.site.cfg.in