[CMake] Make LLVM_VERSION_* variables user definable
authorChris Bieneman <beanz@apple.com>
Wed, 14 Oct 2015 21:50:09 +0000 (21:50 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 14 Oct 2015 21:50:09 +0000 (21:50 +0000)
commitdf03dfef7d34a30659c10dd218a51e689fdf8c63
treef7564048f02d88967732a8043a3e4198d91e0933
parent8e770608715067248f27b0cbb8726d2cf4f69817
[CMake] Make LLVM_VERSION_* variables user definable

CMake's set command overwrites existing values. Package maintainers may want or need to set the version variables manually, so we need to only set them if they are not already defined. Note I use the "if(NOT DEFINED ...)" syntax deliberately in the last case because empty string is a valid value for the suffx, but not the other variables.

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