summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-10-20 18:16:37 +0000
committerChris Bieneman <beanz@apple.com>2015-10-20 18:16:37 +0000
commite82e7ce9d7857af51f1bb622e4e4755b9f36215e (patch)
tree11668bc61fb795fdd1f5cd25fc693d79f4bfbc98
parent0eb2d8794ea3d0b30b97791ef927f819abc4cc65 (diff)
downloadbcm5719-llvm-e82e7ce9d7857af51f1bb622e4e4755b9f36215e.tar.gz
bcm5719-llvm-e82e7ce9d7857af51f1bb622e4e4755b9f36215e.zip
[CMake] All the checks for if LLVM_VERSION_* variables are set need to be if(DEFINED ...)
This is because if you set one of the variables to 0, if(NOT ...) is true, which isn't what you actually want. Should have thought that through better the first time. llvm-svn: 250841
-rw-r--r--llvm/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 82e937e7ade..bbfd68d5590 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -26,13 +26,13 @@ else()
set(cmake_3_2_USES_TERMINAL USES_TERMINAL)
endif()
-if(NOT LLVM_VERSION_MAJOR)
+if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 3)
endif()
-if(NOT LLVM_VERSION_MINOR)
+if(NOT DEFINED LLVM_VERSION_MINOR)
set(LLVM_VERSION_MINOR 8)
endif()
-if(NOT LLVM_VERSION_PATCH)
+if(NOT DEFINED LLVM_VERSION_PATCH)
set(LLVM_VERSION_PATCH 0)
endif()
if(NOT DEFINED LLVM_VERSION_SUFFIX)
OpenPOWER on IntegriCloud