mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[gettext] Set includes correctly in target (#5463)
This commit is contained in:
parent
3a7c94a19e
commit
68039e4572
@ -3,8 +3,6 @@ project(libintl C)
|
||||
|
||||
find_package(unofficial-iconv REQUIRED)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/config .)
|
||||
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX)
|
||||
set(CMAKE_SHARED_LIBRARY_PREFIX)
|
||||
|
||||
@ -24,6 +22,7 @@ else()
|
||||
set(HAVE_WPRINTF 1)
|
||||
set(HAVE_NEWLOCALE 1)
|
||||
add_definitions(-DHAVE_NEWLOCALE=1)
|
||||
add_definitions(-DHAVE_NEWLOCALE=1)
|
||||
|
||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
||||
@ -107,6 +106,12 @@ add_definitions("-DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_pre
|
||||
|
||||
add_library(libintl ${SOURCES})
|
||||
target_link_libraries(libintl PRIVATE unofficial::iconv::libcharset unofficial::iconv::libiconv)
|
||||
|
||||
target_include_directories(libintl PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/config>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
find_library(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED)
|
||||
target_link_libraries(libintl PRIVATE ${COREFOUNDATION_LIBRARY})
|
||||
@ -135,3 +140,8 @@ find_dependency(unofficial-iconv)
|
||||
find_dependency(Threads)
|
||||
include(\${CMAKE_CURRENT_LIST_DIR}/unofficial-gettext-targets.cmake)
|
||||
")
|
||||
|
||||
install(
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-gettext-config.cmake
|
||||
DESTINATION share/unofficial-gettext
|
||||
)
|
@ -1,4 +1,4 @@
|
||||
Source: gettext
|
||||
Version: 0.19-7
|
||||
Version: 0.19-8
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user