Skip to content

Commit e2edfeb

Browse files
iboBarthw
authored andcommitted
cmake : simplify msvc charsets (ggml-org#10672)
1 parent efc7661 commit e2edfeb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ if (WIN32)
4646
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
4747
endif()
4848

49-
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
50-
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/source-charset:utf-8>")
51-
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/source-charset:utf-8>")
52-
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/execution-charset:utf-8>")
53-
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/execution-charset:utf-8>")
49+
if (MSVC)
50+
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>")
51+
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/utf-8>")
5452
endif()
5553

5654
#

0 commit comments

Comments
 (0)