mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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
This commit is contained in:
parent
4ddf8871ce
commit
c82fd37bcf
@ -15,6 +15,12 @@ function(add_llvm_unittest test_dirname)
|
||||
set_target_properties(${test_name}Tests PROPERTIES FOLDER "Tests")
|
||||
endfunction()
|
||||
|
||||
# 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_custom_target(UnitTests)
|
||||
set_target_properties(UnitTests PROPERTIES FOLDER "Tests")
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user