mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Remove include directories for link-only dependencies
This commit is contained in:
parent
26835480dc
commit
2377a312b9
@ -97,19 +97,16 @@ if(NOT @BUILD_SHARED_LIBS@)
|
||||
if(@LIBXML2_WITH_ICU@)
|
||||
find_dependency(ICU COMPONENTS data i18n uc)
|
||||
list(APPEND LIBXML2_LIBRARIES ${ICU_LIBRARIES})
|
||||
list(APPEND LIBXML2_INCLUDE_DIRS ${ICU_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(@LIBXML2_WITH_LZMA@)
|
||||
find_dependency(LibLZMA)
|
||||
list(APPEND LIBXML2_LIBRARIES ${LIBLZMA_LIBRARIES})
|
||||
list(APPEND LIBXML2_INCLUDE_DIRS ${LIBLZMA_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(@LIBXML2_WITH_ZLIB@)
|
||||
find_dependency(ZLIB)
|
||||
list(APPEND LIBXML2_LIBRARIES ${ZLIB_LIBRARIES})
|
||||
list(APPEND LIBXML2_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
|
@ -59,21 +59,18 @@ endif()
|
||||
if(@WITH_ICU@)
|
||||
find_dependency(ICU COMPONENTS data i18n uc)
|
||||
list(APPEND LIBXML2_LIBRARIES ${ICU_LIBRARIES})
|
||||
list(APPEND LIBXML2_INCLUDE_DIRS ${ICU_INCLUDE_DIRS})
|
||||
list(APPEND LIBXML2_INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:ICU::data>;\$<LINK_ONLY:ICU::i18n>;\$<LINK_ONLY:ICU::uc>")
|
||||
endif()
|
||||
|
||||
if(@WITH_LZMA@)
|
||||
find_dependency(LibLZMA)
|
||||
list(APPEND LIBXML2_LIBRARIES ${LIBLZMA_LIBRARIES})
|
||||
list(APPEND LIBXML2_INCLUDE_DIRS ${LIBLZMA_INCLUDE_DIRS})
|
||||
list(APPEND LIBXML2_INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:LibLZMA::LibLZMA>")
|
||||
endif()
|
||||
|
||||
if(@WITH_ZLIB@)
|
||||
find_dependency(ZLIB)
|
||||
list(APPEND LIBXML2_LIBRARIES ${ZLIB_LIBRARIES})
|
||||
list(APPEND LIBXML2_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS})
|
||||
list(APPEND LIBXML2_INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:ZLIB::ZLIB>")
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user