Skip to content

Commit 6112887

Browse files
author
LittleLoli
authored
cmake : add msvc compiler args /utf-8 fix error C3688 (#721)
* force msvc compiler use utf-8 encode * only enable on msvc
1 parent 78548dc commit 6112887

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ cmake_minimum_required (VERSION 3.0)
22

33
project(whisper.cpp VERSION 1.2.1)
44

5+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
6+
add_compile_options(/utf-8)
7+
endif ()
8+
59
# Add path to modules
610
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
711

0 commit comments

Comments
 (0)