From 62d0697f435cd2ecac5af31d5ea47f183df1d163 Mon Sep 17 00:00:00 2001 From: wangli28 <47812810+wangli28@users.noreply.github.com> Date: Mon, 27 May 2019 17:55:20 +0000 Subject: [shiva] Fix build error "Could NOT find PythonInterp" (#6637) --- ports/shiva/CONTROL | 2 +- ports/shiva/portfile.cmake | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ports/shiva/CONTROL b/ports/shiva/CONTROL index ef9154a29..9a92c1518 100644 --- a/ports/shiva/CONTROL +++ b/ports/shiva/CONTROL @@ -1,4 +1,4 @@ Source: shiva -Version: 1.0 +Version: 1.0-1 Description: Modern C++ Game Engine Build-Depends: boost-stacktrace, boost-filesystem, boost-dll, entt, lua (windows), luafilesystem (windows), sol2, pybind11, spdlog, nlohmann-json diff --git a/ports/shiva/portfile.cmake b/ports/shiva/portfile.cmake index 1f64fa220..372c318e0 100644 --- a/ports/shiva/portfile.cmake +++ b/ports/shiva/portfile.cmake @@ -1,5 +1,7 @@ include(vcpkg_common_functions) +vcpkg_find_acquire_program(PYTHON2) + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Milerius/shiva @@ -11,7 +13,9 @@ vcpkg_from_github( vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA - OPTIONS -DSHIVA_BUILD_TESTS=OFF + OPTIONS + -DSHIVA_BUILD_TESTS=OFF + -DPYTHON_EXECUTABLE=${PYTHON2} ) vcpkg_install_cmake() -- cgit v1.2.3