diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2012-06-06 03:11:20 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2012-06-06 03:11:20 +0000 |
commit | c82fd37bcf38ff976ce0a62576899588563f8a09 (patch) | |
tree | 85d165385f524fcb580f039ccec1d197c03610a5 /utils | |
parent | 4ddf8871ceaa32d60f7834a74c5556fd82ab8d79 (diff) | |
download | external_llvm-c82fd37bcf38ff976ce0a62576899588563f8a09.zip external_llvm-c82fd37bcf38ff976ce0a62576899588563f8a09.tar.gz external_llvm-c82fd37bcf38ff976ce0a62576899588563f8a09.tar.bz2 |
Fix gtest build issue on Visual Studio 2012 RC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/unittest/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/unittest/CMakeLists.txt b/utils/unittest/CMakeLists.txt index 73491f0..70ed35d 100644 --- a/utils/unittest/CMakeLists.txt +++ b/utils/unittest/CMakeLists.txt @@ -27,6 +27,12 @@ endif() set(LLVM_REQUIRES_RTTI 1) add_definitions( -DGTEST_HAS_RTTI=0 ) +# 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 () + add_llvm_library(gtest googletest/gtest.cc googletest/gtest-death-test.cc |