2017-03-27 14:09:39 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-03-27 15:21:22 +08:00
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pybind11-2.1.0)
|
2017-03-27 14:09:39 +08:00
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2017-03-27 14:21:48 +08:00
|
|
|
URLS "https://github.com/pybind/pybind11/archive/v2.1.0.tar.gz"
|
|
|
|
FILENAME "pybind11-2.1.0.tar.gz"
|
|
|
|
SHA512 2f74dcd2b82d8e41da7db36351284fe04511038bec66bdde820da9c0fce92f6d2c5aeb2e48264058a91a775a1a6a99bc757d26ebf001de3df4183d700d46efa1
|
2017-03-27 14:09:39 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-03-28 08:25:38 +08:00
|
|
|
OPTIONS -DPYBIND11_TEST=OFF
|
2017-03-27 14:09:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/)
|
|
|
|
|
|
|
|
# copy license
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pybind11/copyright)
|