cmake : add msvc compiler args /utf-8 fix error C3688 (#721)

* force msvc compiler use utf-8 encode

* only enable on msvc
This commit is contained in:
LittleLoli 2023-04-15 00:36:38 +08:00 committed by GitHub
parent 78548dc03f
commit 61128870b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,10 @@ cmake_minimum_required (VERSION 3.0)
project(whisper.cpp VERSION 1.2.1)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_compile_options(/utf-8)
endif ()
# Add path to modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")