|
|
@@ -46,11 +46,9 @@ if (WIN32)
|
|
|
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
|
|
endif()
|
|
|
|
|
|
-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
|
|
- add_compile_options("$<$<COMPILE_LANGUAGE:C>:/source-charset:utf-8>")
|
|
|
- add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/source-charset:utf-8>")
|
|
|
- add_compile_options("$<$<COMPILE_LANGUAGE:C>:/execution-charset:utf-8>")
|
|
|
- add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/execution-charset:utf-8>")
|
|
|
+if (MSVC)
|
|
|
+ add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>")
|
|
|
+ add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/utf-8>")
|
|
|
endif()
|
|
|
|
|
|
#
|