Move FMT_USE_VARIADIC_TEMPLATES definition to macro-test.cc

This commit is contained in:
vitaut 2015-03-17 07:57:30 -07:00
parent 8ed6031457
commit 538c2610cb
2 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,6 @@ if (HAVE_TYPE_TRAITS)
endif ()
add_executable(macro-test macro-test.cc ${FMT_TEST_SOURCES} ${TEST_MAIN_SRC})
set_target_properties(macro-test
PROPERTIES COMPILE_DEFINITIONS "FMT_USE_VARIADIC_TEMPLATES=0")
target_link_libraries(macro-test gmock)
if (HAVE_OPEN)

View File

@ -27,6 +27,8 @@
#include <utility>
#include <gtest/gtest.h>
#define FMT_USE_VARIADIC_TEMPLATES 0
#include "format.h"
#define IDENTITY(x) x