mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 16:47:50 +08:00
5a80a8e9dd
* [zxing-cpp] Fix build failure * [libiconv] Add vcpkg-cmake-wrapper to find libcharset * [zxing-cpp] Use FindIconv and wrapper to find libiconv, add features * [libiconv] Add include code to wrapper
11 lines
658 B
CMake
11 lines
658 B
CMake
include(SelectLibraryConfigurations)
|
|
|
|
_find_package(${ARGS})
|
|
if(Iconv_FOUND)
|
|
find_library(CHARSET_LIBRARY_DEBUG NAMES charsetd libcharsetd charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH)
|
|
find_library(CHARSET_LIBRARY_RELEASE NAMES charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
|
|
find_library(CHARSET_LIBRARY_RELEASE NAMES charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib)
|
|
select_library_configurations(CHARSET)
|
|
list(APPEND Iconv_LIBRARIES ${CHARSET_LIBRARIES})
|
|
endif()
|