test: force source-charset to utf-8 in MSVC
prevents `tests\test-grammar-integration.cpp(483,13): error C2001: newline in constant` in non-UTF8 Windows shell
This commit is contained in:
parent
dbd5f2f573
commit
a5113451a3
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
if(WIN32)
|
||||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")
|
||||
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/source-charset:utf-8>")
|
||||
endif()
|
||||
|
||||
function(llama_test target)
|
||||
include(CMakeParseArguments)
|
||||
set(options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue