From e0e8f717a0f56ae13a606e544007446f1e871e60 Mon Sep 17 00:00:00 2001 From: Mario Werner Date: Wed, 3 Feb 2016 09:14:32 +0100 Subject: [PATCH] FMT_USE_FILE_DESCRIPTORS is apparently only needed for the tests --- cppformat/CMakeLists.txt | 3 --- test/CMakeLists.txt | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cppformat/CMakeLists.txt b/cppformat/CMakeLists.txt index 9e8bf4ff..fe11c664 100644 --- a/cppformat/CMakeLists.txt +++ b/cppformat/CMakeLists.txt @@ -12,9 +12,6 @@ if (FMT_PEDANTIC) target_compile_options(cppformat PRIVATE ${PEDANTIC_COMPILE_FLAGS}) endif () -target_compile_definitions(cppformat INTERFACE - FMT_USE_FILE_DESCRIPTORS=$) - target_include_directories(cppformat INTERFACE $ $) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1a19a976..f082453e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -56,7 +56,8 @@ function(add_fmt_test name) # define if certain c++ features can be used target_compile_definitions(${name} PRIVATE FMT_USE_TYPE_TRAITS=$ - FMT_USE_ENUM_BASE=$) + FMT_USE_ENUM_BASE=$ + FMT_USE_FILE_DESCRIPTORS=$) if (FMT_PEDANTIC) target_compile_options(${name} PRIVATE ${PEDANTIC_COMPILE_FLAGS}) endif ()