From: Gang Chen Date: Tue, 25 Jul 2023 16:08:37 +0000 (+0800) Subject: cmake : fix MSVC compile error C3688 on non-unicode Windows (#1110) X-Git-Tag: upstream/1.7.4~1376 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fe5c1a7341a973107c1e38286c287d32090082db;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : fix MSVC compile error C3688 on non-unicode Windows (#1110) Co-authored-by: Gang Chen --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b1f3bb19..c955d742 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,6 +240,7 @@ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES else() message(STATUS "x86 detected") if (MSVC) + add_compile_options(/utf-8) if(NOT WHISPER_NO_AVX2) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:AVX2") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /arch:AVX2")