mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Move FMT_USE_VARIADIC_TEMPLATES definition to macro-test.cc
This commit is contained in:
@ -46,8 +46,6 @@ if (HAVE_TYPE_TRAITS)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_executable(macro-test macro-test.cc ${FMT_TEST_SOURCES} ${TEST_MAIN_SRC})
|
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)
|
target_link_libraries(macro-test gmock)
|
||||||
|
|
||||||
if (HAVE_OPEN)
|
if (HAVE_OPEN)
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
#define FMT_USE_VARIADIC_TEMPLATES 0
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
|
|
||||||
#define IDENTITY(x) x
|
#define IDENTITY(x) x
|
||||||
|
Reference in New Issue
Block a user