From 2500606763e0e1596984fe3e5b2552e4b950135c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 9 Aug 2013 11:26:12 +0000 Subject: [PATCH] Build with variadic max of 10 on VS 2012 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@921 fdac6126-5c0c-442c-9429-916003d36597 --- src/Unittests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Unittests/CMakeLists.txt b/src/Unittests/CMakeLists.txt index f6606ced..03140eb2 100644 --- a/src/Unittests/CMakeLists.txt +++ b/src/Unittests/CMakeLists.txt @@ -21,6 +21,11 @@ if ( OPENMESH_BUILD_UNIT_TESTS ) include_directories(${GTEST_INCLUDE_DIRS}) # set additional link directories link_directories(${GTEST_LIBRARY_DIR} ) + + if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" ) + add_definitions( /D _VARIADIC_MAX=10 ) + endif() + # Create new target named unittests_hexmeshing add_executable(unittests unittests.cc)