[flang] Fix standalone builds
authorShoaib Meenai <smeenai@fb.com>
Wed, 12 May 2021 19:59:23 +0000 (12:59 -0700)
committerShoaib Meenai <smeenai@fb.com>
Wed, 12 May 2021 20:00:53 +0000 (13:00 -0700)
commit30b7dfafdb620420ad3498aae01130bc7e2fb9cd
treea9d6980a7021e8a110036ca96ce6147f9ff3197b
parent08ba9ce1ef7214623d4104e72d817c73644a0884
[flang] Fix standalone builds

Flang's CMake modules directory was being added to the CMake module path
twice, and AddFlang was being included after the first addition. Remove
the unnecessary first addition and move the AddFlang include down to the
second one. This way, it occurs after LLVM's CMake modules have been
included for a standalone build, so it can make use of those modules.
flang/CMakeLists.txt