summaryrefslogtreecommitdiffstats
path: root/llvm/projects/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-05 14:43:07 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-05 14:43:07 +0000
commitdb171ea95ff06371eea604a29ddaf7e437b73ad2 (patch)
treedd11e1ff6851dd5733eecdd4a101c6a3e0acd8cd /llvm/projects/CMakeLists.txt
parent68a0668453e00b16443a1fe7509d860e34229988 (diff)
downloadbcm5719-llvm-db171ea95ff06371eea604a29ddaf7e437b73ad2.tar.gz
bcm5719-llvm-db171ea95ff06371eea604a29ddaf7e437b73ad2.zip
Print a warning message if compiler-rt can't be built because of old CMake version to make this requirement more visible to users
llvm-svn: 176481
Diffstat (limited to 'llvm/projects/CMakeLists.txt')
-rw-r--r--llvm/projects/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/projects/CMakeLists.txt b/llvm/projects/CMakeLists.txt
index 36751cd31da..c19bb679d18 100644
--- a/llvm/projects/CMakeLists.txt
+++ b/llvm/projects/CMakeLists.txt
@@ -13,7 +13,10 @@ endforeach(entry)
# Also add in the compiler-rt tree if present and we have a sufficiently
# recent version of CMake.
-if(${CMAKE_VERSION} VERSION_GREATER 2.8.7 AND
- ${LLVM_BUILD_RUNTIME})
- add_llvm_external_project(compiler-rt)
+if(${LLVM_BUILD_RUNTIME})
+ if(${CMAKE_VERSION} VERSION_GREATER 2.8.7)
+ add_llvm_external_project(compiler-rt)
+ else()
+ message(WARNING "Can't build compiler-rt, CMake 2.8.8 required!")
+ endif()
endif()
OpenPOWER on IntegriCloud