Check for invalid projects passed in LLVM_ENABLE_PROJECTS
authorMehdi Amini <joker.eph@gmail.com>
Sat, 18 Sep 2021 02:38:17 +0000 (02:38 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 18 Sep 2021 18:11:30 +0000 (18:11 +0000)
commit713c768a6d0e385be0f14816494d146bd32ea731
treefefc73beaba7bb12398375145f72c5840696050b
parent7b25fa8c7a151e94be46ed8f0a56bf4e2af1c104
Check for invalid projects passed in LLVM_ENABLE_PROJECTS

This is catching misconfiguration. For example one of my automation
had a typo running `-DLLVM_ENABLE_PROJECTS=nlir` and it was just
silently ignored. Instead, an error will now be displayed.

Recommit 4121ac1e after fixing it to not fail on "all"

Differential Revision: https://reviews.llvm.org/D110016
llvm/CMakeLists.txt