Skip to content

Commit

Permalink
cmake : add msvc compiler args /utf-8 fix error C3688 (ggerganov#721)
Browse files Browse the repository at this point in the history
* force msvc compiler use utf-8 encode

* only enable on msvc
  • Loading branch information
LittleLoli authored Apr 14, 2023
1 parent 78548dc commit 6112887
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/")

Expand Down

0 comments on commit 6112887

Please sign in to comment.