summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 8fab777d9cd..d41761cfba2 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -13,7 +13,13 @@ include(LLVMParseArguments)
# to use its support for building convenience "libraries" as a collection of
# .o files. This is particularly useful in producing larger, more complex
# runtime libraries.
-cmake_minimum_required(VERSION 2.8.8)
+if (NOT MSVC)
+ cmake_minimum_required(VERSION 2.8.8)
+else()
+ # Version 2.8.12.1 is required to build with Visual Studion 2013.
+ cmake_minimum_required(VERSION 2.8.12.1)
+endif()
+
# Top level target used to build all compiler-rt libraries.
add_custom_target(compiler-rt)
OpenPOWER on IntegriCloud