[cmake] Make include(GNUInstallDirs) always below project(..)
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Wed, 19 Jan 2022 06:45:07 +0000 (06:45 +0000)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Thu, 20 Jan 2022 18:59:17 +0000 (18:59 +0000)
commitdf31ff1b29bc4c2308ec5df8a7ff0ec2ab0942d4
tree159a5c483a888749edd6e0840429ba43e7d73b5c
parentc65186c89f35b7b599c41183def666a2bde62ddd
[cmake] Make include(GNUInstallDirs) always below project(..)

Its defaulting logic must go after `project(..)` to work correctly,  but `project(..)` is often in a standalone condition making this
awkward, since the rest of the condition code may also need GNUInstallDirs.

The good thing is there are the various standalone booleans, which I had missed before. This makes splitting the conditional blocks less awkward.

Reviewed By: arichardson, phosek, beanz, ldionne, #libunwind, #libc, #libc_abi

Differential Revision: https://reviews.llvm.org/D117639
12 files changed:
flang/CMakeLists.txt
libcxx/CMakeLists.txt
libcxxabi/CMakeLists.txt
libunwind/CMakeLists.txt
lld/CMakeLists.txt
lldb/CMakeLists.txt
lldb/cmake/modules/LLDBStandalone.cmake
lldb/tools/debugserver/CMakeLists.txt
llvm/CMakeLists.txt
mlir/CMakeLists.txt
polly/CMakeLists.txt
pstl/CMakeLists.txt