Fix disabling Unicode support
This commit is contained in:
@@ -45,6 +45,10 @@ function(add_fmt_test name)
|
||||
add_fmt_executable(${name} ${sources})
|
||||
target_link_libraries(${name} ${libs})
|
||||
|
||||
if (ADD_FMT_TEST_HEADER_ONLY AND NOT FMT_UNICODE)
|
||||
target_compile_definitions(${name} PUBLIC FMT_UNICODE=0)
|
||||
endif ()
|
||||
|
||||
# Define if certain C++ features can be used.
|
||||
if (FMT_PEDANTIC)
|
||||
target_compile_options(${name} PRIVATE ${PEDANTIC_COMPILE_FLAGS})
|
||||
|
||||
Reference in New Issue
Block a user