vcpkg/ports/boost-python/portfile.cmake

22 lines
1015 B
CMake
Raw Normal View History

2017-12-06 05:00:50 +08:00
# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO boostorg/python
2018-04-18 06:18:09 +08:00
REF boost-1.67.0
SHA512 59091af63626cc6e33f76bded8733b5fb044f7139197e6c887e8e279831954c1e8b67341b6b2f3c9dce97e67a166996321ea439609d225dab7f68762423d6211
2017-12-06 05:00:50 +08:00
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}")
2018-01-18 14:08:48 +08:00
include(${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
2017-12-22 03:46:26 +08:00
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
2018-01-18 14:08:48 +08:00
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
2017-12-06 05:00:50 +08:00
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})