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 ()