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 02:53:44 +0000 (02:53 +0000)
commit4121ac1e7f96d826b793bd7e29c181f1eb8168bf
tree5e4eaa7bc3ee142938c7558c76f494b04bf90861
parentf1c821fa850b5168e0cc120f2497ac54d8ad325b
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.

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