]> granicus.if.org Git - llvm/commit
[cmake] Remove policy conditionals
authorShoaib Meenai <smeenai@fb.com>
Thu, 2 Nov 2017 20:33:36 +0000 (20:33 +0000)
committerShoaib Meenai <smeenai@fb.com>
Thu, 2 Nov 2017 20:33:36 +0000 (20:33 +0000)
commitc626458f76209b25c24dcbeb4545534f8bc120ba
tree2883a92fda94b3bea357742d9e8aef07656c15c7
parent15f5deb8cb6fb5c575a3c7cda87a5a723b5ada2b
[cmake] Remove policy conditionals

LLVM now requires a minimum of cmake 3.4.3, and all the policies
currently being set are present in that cmake version, so the
conditionals will always be true and are therefore unnecessary. The
movation is that the conditionals can give the false impression that the
policy settings are optional, whereas for example it's necessary to set
CMP0056 in order for `check_linker_flags` to operate correctly after
r316972. Inline the project version and language setting in the process.

Differential Revision: https://reviews.llvm.org/D39442

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317264 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt