diff --git a/src/native/external/zstd.cmake b/src/native/external/zstd.cmake index 1d3b104ffe5974..6c7d86ad421bfa 100644 --- a/src/native/external/zstd.cmake +++ b/src/native/external/zstd.cmake @@ -52,4 +52,7 @@ if (ANDROID) endif() # disable warnings that occur in the zstd library -target_compile_options(libzstd_static PRIVATE $<$:-Wno-implicit-fallthrough>) \ No newline at end of file +target_compile_options(libzstd_static PRIVATE $<$:-Wno-implicit-fallthrough>) + +# Avoid errors caused by non-ASCII characters +target_compile_options(libzstd_static PRIVATE $<$:/source-charset:utf-8>) \ No newline at end of file