Merge pull request #792 from jpcima/utf8-msvc

Process source code as UTF-8
This commit is contained in:
JP Cimalando 2021-04-07 04:35:23 +02:00 committed by GitHub
commit f5b3e7fe3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,11 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
# Process sources as UTF-8
if(MSVC)
add_compile_options("/utf-8")
endif()
# Set Windows compatibility level to 7
if(WIN32)
add_compile_definitions(_WIN32_WINNT=0x601)