vcpkg/scripts/boost/post-source-stubs/python.cmake
yurybura 1c414f9192
[boost-python] Try to fix build issue on Linux (#9780)
* [boost-python] Try to fix build issue on Linux

* Update baseline: enable boost-python:x64-linux

* Fix number of processor detection on Linux: use CMake module

* Fix user-config.jam configuration on Linux

* Update baseline: enable boost-mpi:x64-linux

* Fix build boost-regex[icu] on Linux, issue #4962
2020-03-02 10:41:27 -08:00

9 lines
510 B
CMake

# Find Python3 executable
vcpkg_find_acquire_program(PYTHON3)
set(VCPKG_PYTHON_EXECUTABLE "${PYTHON3}")
# Find Python3 libraries. Can't use find_package here, but we already know where everything is
file(GLOB VCPKG_PYTHON_INCLUDE "${CURRENT_INSTALLED_DIR}/include/python3.*")
set(VCPKG_PYTHON_LIBS_RELEASE "${CURRENT_INSTALLED_DIR}/lib")
set(VCPKG_PYTHON_LIBS_DEBUG "${CURRENT_INSTALLED_DIR}/debug/lib")
string(REGEX REPLACE ".*python([0-9\.]+).*" "\\1" VCPKG_PYTHON_VERSION "${VCPKG_PYTHON_INCLUDE}")