vcpkg/ports/curl/portfile.cmake

24 lines
814 B
CMake
Raw Normal View History

2016-09-19 11:50:08 +08:00
include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0)
2016-09-19 11:50:08 +08:00
vcpkg_download_distfile(ARCHIVE_FILE
URLS "https://curl.haxx.se/download/curl-7.48.0.tar.bz2"
2016-09-19 11:50:08 +08:00
FILENAME "curl-7.48.0.tar.bz2"
SHA512 9bb554eaf4ccaced0fa9b38de4f381eab84b96c1aa07a45d83ddfd38a925044d0fe9fac517263f67f009d2294a31c33dedb2267defbab0cb14f96091bbed5f92
2016-09-19 11:50:08 +08:00
)
vcpkg_extract_source_archive(${ARCHIVE_FILE})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2016-09-19 11:50:08 +08:00
OPTIONS
-DBUILD_CURL_TESTS=OFF
-DBUILD_CURL_EXE=OFF
-DENABLE_MANUAL=OFF
OPTIONS_DEBUG
-DENABLE_DEBUG=ON
)
vcpkg_install_cmake()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/curl RENAME copyright)
2016-09-19 11:50:08 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_copy_pdbs()