diff --git a/CMakeLists.txt b/CMakeLists.txt index 0138d34671c3..31a440386912 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -368,8 +368,8 @@ if (NOT MSVC) # Unicode is always supported on compilers other than MSVC. elseif (FMT_UNICODE) # Unicode support requires compiling with /utf-8. - target_compile_options(fmt PUBLIC /utf-8) - target_compile_options(fmt-header-only INTERFACE /utf-8) + target_compile_options(fmt PUBLIC "/utf-8") + target_compile_options(fmt-header-only INTERFACE "/utf-8") else () target_compile_definitions(fmt PUBLIC FMT_UNICODE=0) endif ()