Treating strings as UTF-8

This commit is contained in:
Daniel Wolf 2017-08-01 17:52:01 +02:00
parent 908d64d01b
commit f17cb0cc54
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,11 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
endif()
# Use UTF-8 throughout
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_compile_options("/utf-8")
endif()
if(${UNIX})
add_definitions(-DHAVE_UNISTD_H)
endif()