mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Added generator expression to /utf-8 compile option (#3995)
Do not pass the compile options in the project to other compilers such as nvcc
This commit is contained in:
committed by
GitHub
parent
d4a8d26c55
commit
077e4ae746
@ -350,8 +350,8 @@ add_library(fmt::fmt-header-only ALIAS fmt-header-only)
|
|||||||
|
|
||||||
if (MSVC AND FMT_UNICODE)
|
if (MSVC AND FMT_UNICODE)
|
||||||
# Unicode support requires compiling with /utf-8.
|
# Unicode support requires compiling with /utf-8.
|
||||||
target_compile_options(fmt PUBLIC /utf-8)
|
target_compile_options(fmt PUBLIC $<$<COMPILE_LANGUAGE:CXX>:/utf-8>)
|
||||||
target_compile_options(fmt-header-only INTERFACE /utf-8)
|
target_compile_options(fmt-header-only INTERFACE $<$<COMPILE_LANGUAGE:CXX>:/utf-8>)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1)
|
target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1)
|
||||||
|
Reference in New Issue
Block a user