[gettext]Improve gettext on Linux. (#7990)

This commit is contained in:
JackBoosY 2019-09-05 03:20:38 +08:00 committed by Phil Christensen
parent a3e8197f2d
commit ba34f17814
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: gettext
Version: 0.19-10
Version: 0.19-11
Homepage: https://www.gnu.org/software/gettext/
Description: The GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages. Provides libintl.
Build-Depends: libiconv

View File

@ -1,5 +1,8 @@
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
if (NOT EXISTS "/usr/include/libintl.h")
message(FATAL_ERROR "Please use command \"sudo apt-get install gettext\" to install gettext on linux.")
endif()
file(COPY ${CMAKE_CURRENT_LIST_DIR}/unofficial-gettext-config.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/unofficial-gettext)
return()
endif()