mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 15:19:07 +08:00
801f40c688
* [OpenCV] update to v4.5.3 and to v3.4.15 * [OpenCV] update refs * [libxml2] add missing find_dependency(Iconv) [libiconv] update cmake wrapper * [libiconv] fix hints * [opencv4] do not require cudnn if cuda enabled * [opencv] update refs * [OpenCV] increase CI coverage even more * [vcpkg-ci-opencv] trying to restore x64-uwp ci tests * restore previous patches to avoid unnecessary modifications * [OpenCV] fix refs * [OpenCV] fix CMake Warning related to protobuf dependency * [OpenCV] fix refs * [libxml2] fix references * [libxml2] restore previous cmake wrapper, new one is broken * [libxml2] fix references * bump versions * update refs * [libxml2] Update the format for vcpkg-cmake-wrapper.cmake * Update versions/l-/libxml2.json * [libxml2] update port version * [libxml2] update refs * [OpenCV] fix refs Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
22 lines
1.2 KiB
CMake
22 lines
1.2 KiB
CMake
include(SelectLibraryConfigurations)
|
|
|
|
_find_package(${ARGS})
|
|
if(Iconv_FOUND AND NOT Iconv_IS_BUILT_IN)
|
|
find_path(CHARSET_INCLUDE_DIR NAMES "libcharset.h" HINTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include")
|
|
find_library(CHARSET_LIBRARY_DEBUG NAMES charsetd libcharsetd charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib HINTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug")
|
|
find_library(CHARSET_LIBRARY_RELEASE NAMES charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib HINTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}")
|
|
select_library_configurations(CHARSET)
|
|
if(NOT TARGET Iconv::Charset)
|
|
add_library(Iconv::Charset INTERFACE IMPORTED)
|
|
set_target_properties(Iconv::Charset PROPERTIES
|
|
INTERFACE_LINK_LIBRARIES "\$<\$<NOT:\$<CONFIG:DEBUG>>:${CHARSET_LIBRARY_RELEASE}>;\$<\$<CONFIG:DEBUG>:${CHARSET_LIBRARY_DEBUG}>"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${CHARSET_INCLUDE_DIRS}")
|
|
endif()
|
|
if(CHARSET_LIBRARIES)
|
|
list(APPEND Iconv_LIBRARIES ${CHARSET_LIBRARIES})
|
|
if(TARGET Iconv::Iconv)
|
|
set_property(TARGET Iconv::Iconv APPEND PROPERTY INTERFACE_LINK_LIBRARIES Iconv::Charset)
|
|
endif()
|
|
endif()
|
|
endif()
|