diff Resources/CMake/GoogleTestConfiguration.cmake @ 1061:4b4ab35c04f5

fix for visual studio 2012
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Jul 2014 14:34:39 +0200
parents 92aa6df91c30
children 88fcf73fbe39
line wrap: on
line diff
--- a/Resources/CMake/GoogleTestConfiguration.cmake	Fri Jul 25 14:29:55 2014 +0200
+++ b/Resources/CMake/GoogleTestConfiguration.cmake	Fri Jul 25 14:34:39 2014 +0200
@@ -23,6 +23,11 @@
     ${GTEST_SOURCES_DIR}/src/gtest-all.cc
     )
 
+  # https://code.google.com/p/googletest/issues/detail?id=412
+  if (MSVC) # VS2012 does not support tuples correctly yet
+    add_definitions(/D _VARIADIC_MAX=10)
+  endif()
+
 else()
   include(FindGTest)
   if (NOT GTEST_FOUND)