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
This commit is contained in:
Jan Möbius
2013-08-09 11:26:12 +00:00
parent ef1727f21a
commit 2500606763

View File

@@ -21,6 +21,11 @@ if ( OPENMESH_BUILD_UNIT_TESTS )
include_directories(${GTEST_INCLUDE_DIRS}) include_directories(${GTEST_INCLUDE_DIRS})
# set additional link directories # set additional link directories
link_directories(${GTEST_LIBRARY_DIR} ) 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 # Create new target named unittests_hexmeshing
add_executable(unittests unittests.cc) add_executable(unittests unittests.cc)