Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Suppress warning C4819 in Visual Studio 2013

kusano543ae709dc84
diff --git a/toonz/sources/CMakeLists.txt b/toonz/sources/CMakeLists.txt
index 74c956dc9..db9a6ad74 100644
--- a/toonz/sources/CMakeLists.txt
+++ b/toonz/sources/CMakeLists.txt
@@ -199,6 +199,12 @@ if(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()
+if (MSVC AND MSVC_VERSION EQUAL 1800)
+ # Visual C++ 2013 cannot handle UTF-8 without BOM
+ # Non-ascii characters in comments would not be a problem
+ add_compile_options("/wd4819")
+endif()
+
# generate Qt translations and messages
set(LANGUAGES japanese italian french)