[llvm] r176481 - Print a warning message if compiler-rt can't be built because of old CMake version to make this requirement more visible to users
Alexey Samsonov
samsonov at google.com
Tue Mar 5 06:43:07 PST 2013
Author: samsonov
Date: Tue Mar 5 08:43:07 2013
New Revision: 176481
URL: http://llvm.org/viewvc/llvm-project?rev=176481&view=rev
Log:
Print a warning message if compiler-rt can't be built because of old CMake version to make this requirement more visible to users
Modified:
llvm/trunk/projects/CMakeLists.txt
Modified: llvm/trunk/projects/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/projects/CMakeLists.txt?rev=176481&r1=176480&r2=176481&view=diff
==============================================================================
--- llvm/trunk/projects/CMakeLists.txt (original)
+++ llvm/trunk/projects/CMakeLists.txt Tue Mar 5 08:43:07 2013
@@ -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()
More information about the llvm-commits
mailing list