Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 5c4e836

Browse files
author
Alexey Samsonov
committed
Print a warning message if compiler-rt can't be built because of old CMake version to make this requirement more visible to users
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176481 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent a0a790b commit 5c4e836

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

projects/CMakeLists.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ endforeach(entry)
1313

1414
# Also add in the compiler-rt tree if present and we have a sufficiently
1515
# recent version of CMake.
16-
if(${CMAKE_VERSION} VERSION_GREATER 2.8.7 AND
17-
${LLVM_BUILD_RUNTIME})
18-
add_llvm_external_project(compiler-rt)
16+
if(${LLVM_BUILD_RUNTIME})
17+
if(${CMAKE_VERSION} VERSION_GREATER 2.8.7)
18+
add_llvm_external_project(compiler-rt)
19+
else()
20+
message(WARNING "Can't build compiler-rt, CMake 2.8.8 required!")
21+
endif()
1922
endif()

0 commit comments

Comments
 (0)