mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 18:47:48 +08:00
22 lines
1015 B
CMake
22 lines
1015 B
CMake
# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1
|
|
|
|
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO boostorg/python
|
|
REF boost-1.66.0
|
|
SHA512 3a16f16c19bf8a97c10db5c4a39385646a49ed794e9f7a0030181c0fb163671306ca92714aeea6440f60d043736ea4c15d1256fb418f18aea164c2d09420774f
|
|
HEAD_REF master
|
|
)
|
|
|
|
# Find Python. Can't use find_package here, but we already know where everything is
|
|
file(GLOB PYTHON_INCLUDE_PATH "${CURRENT_INSTALLED_DIR}/include/python[0-9.]*")
|
|
set(PYTHONLIBS_RELEASE "${CURRENT_INSTALLED_DIR}/lib")
|
|
set(PYTHONLIBS_DEBUG "${CURRENT_INSTALLED_DIR}/debug/lib")
|
|
string(REGEX REPLACE ".*python([0-9\.]+)$" "\\1" PYTHON_VERSION "${PYTHON_INCLUDE_PATH}")
|
|
include(${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
|
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
|
|
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
|
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|