Skip to content

Commit

Permalink
[pango/gtk]Fix build error C2001. (#6671)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBoosY authored and Rastaban committed May 29, 2019
1 parent 93ceb1a commit 70e7124
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ports/gtk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ports/gtk/CONTROL
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions ports/pango/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
2 changes: 1 addition & 1 deletion ports/pango/CONTROL
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 70e7124

Please sign in to comment.