summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-02-14 00:45:32 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-02-14 00:45:32 +0000
commit6b098c4a26b82f98e7779ce6fa73df9566297fdf (patch)
tree398b83c971855cfbad537760322005170a30eb31 /utils
parentf7f5309424592e89de49d4a41ecf0864c54a7325 (diff)
Revert r229185, "Raising minimum required Visual Studio version to 2013."
All builders are not ready yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/unittest/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/unittest/CMakeLists.txt b/utils/unittest/CMakeLists.txt
index b34e22ae0cb..7ac894dff14 100644
--- a/utils/unittest/CMakeLists.txt
+++ b/utils/unittest/CMakeLists.txt
@@ -32,6 +32,12 @@ if (NOT LLVM_ENABLE_THREADS)
add_definitions( -DGTEST_HAS_PTHREAD=0 )
endif()
+# Visual Studio 2012 only supports up to 8 template parameters in
+# std::tr1::tuple by default, but gtest requires 10
+if(MSVC AND MSVC_VERSION EQUAL 1700)
+ add_definitions(-D_VARIADIC_MAX=10)
+endif ()
+
set(LIBS
LLVMSupport # Depends on llvm::raw_ostream
)