mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 01:37:50 +08:00
ee9c88f9ec
* Updated libmaxminddb to version 1.9.1 * Cleanup portfile * Use vcpkg_install_copyright function * Updated versions * Update ci.baseline.txt * Implemented fixes from dg0yt * Versions updated * Update portfile.cmake * Update libmaxminddb.json --------- Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>
29 lines
852 B
CMake
29 lines
852 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO maxmind/libmaxminddb
|
|
REF "${VERSION}"
|
|
SHA512 0fc69bb09b74b892317c64d11822e29311e016566b60fc217efb20aec713e29dc02400839497cfcf5e837fcee9efa3536452997fa76bbc23464fad92a5a89bef
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_TESTING=OFF
|
|
-DCMAKE_SHARED_LIBRARY_PREFIX=lib
|
|
-DCMAKE_STATIC_LIBRARY_PREFIX=lib
|
|
OPTIONS_DEBUG
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/maxminddb PACKAGE_NAME maxminddb)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# Handle copyright
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|