[pango/gtk]Fix build error C2001. (#6671)

This commit is contained in:
JackBoosY 2019-05-30 03:45:57 +08:00 committed by Phil Christensen
parent 93ceb1a993
commit 70e7124cc4
4 changed files with 12 additions and 2 deletions

View File

@ -12,6 +12,11 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CAIRO_LIB_SUFFIX d)
endif()
if (WIN32)
# Set utf-8 charset to avoid compile error C2001
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8")
endif()
# find dependencies
# glib
find_path(GLIB_INCLUDE_DIR glib.h)

View File

@ -1,4 +1,4 @@
Source: gtk
Version: 3.22.19-2
Version: 3.22.19-3
Description: Portable library for creating graphical user interfaces.
Build-Depends: glib, atk, gdk-pixbuf, pango, cairo, libepoxy, gettext

View File

@ -11,6 +11,11 @@ else()
configure_file(./config.h.unix ${CMAKE_CURRENT_BINARY_DIR}/config.h COPYONLY)
endif()
if (WIN32)
# Set utf-8 charset to avoid compile error C2001
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8")
endif()
add_definitions(-DHAVE_CONFIG_H)
include_directories(. ./pango ${CMAKE_CURRENT_BINARY_DIR})

View File

@ -1,4 +1,4 @@
Source: pango
Version: 1.40.11-3
Version: 1.40.11-4
Description: Text and font handling library.
Build-Depends: glib, gettext, cairo, fontconfig, freetype, harfbuzz[glib] (!windows-static)