diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-01 11:58:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-02 23:19:38 +0200 |
commit | 36540c773f6833696bae3364c39217847fc5f96b (patch) | |
tree | 74ce51f93f7e199753dd9c1e65ae51031b841d21 /cmake/opentrack-platform.cmake | |
parent | aaa3a04577a7d4633ef0eb9eb7dc2aa33db0d0eb (diff) |
cmake/msvc: always pass -source-charset
The toolchain file isn't always used.
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r-- | cmake/opentrack-platform.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index ab3a5f8b..05566237 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -49,6 +49,9 @@ if(MSVC) foreach (i SHARED MODULE EXE) set(CMAKE_${i}_LINKER_FLAGS "-DYNAMICBASE -NXCOMPAT ${CMAKE_${i}_LINKER_FLAGS} ") endforeach() + + #C4828: The file contains a character starting at offset 0x2763 that is illegal in the current source character set (codepage 65001). + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -source-charset:UTF-8 -wd4828") endif() if(WIN32) |