mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 09:57:50 +08:00
6 lines
373 B
CMake
6 lines
373 B
CMake
# 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}")
|