2017-07-26 01:25:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libkml/libkml
|
|
|
|
REF 1.3.0
|
|
|
|
SHA512 aa48158103d3af764bf98c1fb4cf3e1356b9cc6c8e79d80b96850916f0a8ccb1dac3a46427735dd0bf20647daa047d10e722ac3da2a214d4c1559bf6d5d7c853
|
|
|
|
HEAD_REF master
|
2017-07-29 07:54:57 +08:00
|
|
|
PATCHES
|
2019-10-08 01:35:13 +08:00
|
|
|
patch_empty_literal_on_vc.patch
|
2017-07-29 07:54:57 +08:00
|
|
|
)
|
|
|
|
|
2017-12-06 05:01:50 +08:00
|
|
|
file(REMOVE ${SOURCE_PATH}/cmake/External_boost.cmake)
|
2017-07-29 07:54:57 +08:00
|
|
|
|
2017-07-26 01:25:17 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-08-09 04:50:34 +08:00
|
|
|
PREFER_NINJA
|
2017-07-26 01:25:17 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2017-07-26 08:01:55 +08:00
|
|
|
|
2019-07-11 08:03:41 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
2020-08-17 23:33:44 +08:00
|
|
|
elseif (VCPKG_TARGET_IS_LINUX)
|
2019-07-11 08:03:41 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libkml)
|
2020-08-17 23:33:44 +08:00
|
|
|
elseif (VCPKG_TARGET_IS_OSX)
|
2019-07-11 08:03:41 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libkml)
|
|
|
|
endif()
|
|
|
|
|
2017-07-26 08:01:55 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2020-08-17 23:33:44 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|