[flang]Fix individual tests with lit when building out of tree
authorsameeran joshi <sameeranjayant.joshi@amd.com>
Mon, 22 Jun 2020 04:54:28 +0000 (10:24 +0530)
committerorequest <Osi.Request@amd.com>
Mon, 22 Jun 2020 05:00:33 +0000 (10:30 +0530)
commitfa5d416efdcbdba766c0c9bd0797bd4b8bbe0273
tree46646a3a93461708227f263ff276437dff4d14c3
parentd3c79d195304d5694b47fec7e1e71cab47c2532a
[flang]Fix individual tests with lit when building out of tree

Summary:

Fix individual check tests with lit when building out-of-tree
`ninja check-flang-<folder>` was not working.
The CMakeLists.txt was looking for the lit tests in the source directory
instead of the build directory.

This commit extends @CarolineConcatto previous patch[D81002]

Reviewers: DavidTruby, sscalpone, tskeith, CarolineConcatto, jdoerfert

Reviewed By: DavidTruby

Subscribers: flang-commits, llvm-commits, CarolineConcatto

Tags: #flang, #llvm

Differential Revision: https://reviews.llvm.org/D82120
flang/CMakeLists.txt
flang/test/CMakeLists.txt