Skip to content

Commit

Permalink
Workaround a bug in implementation of variadic templates in MSVC11
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Feb 9, 2016
1 parent acdf563 commit d928ba3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ target_compile_definitions(gtest-extra PUBLIC FMT_USE_FILE_DESCRIPTORS)
find_package(Threads)
target_link_libraries(gtest-extra ${CMAKE_THREAD_LIBS_INIT})

# Workaround a bug in implementation of variadic templates in MSVC11.
if (MSVC)
target_compile_definitions(gtest-extra PUBLIC _VARIADIC_MAX=10)
endif ()

# Check if variadic templates are working and not affected by GCC bug 39653:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39653
check_cxx_source_compiles("
Expand Down

0 comments on commit d928ba3

Please sign in to comment.