From 54095ce882d70d111b6219709656ff2192fd53c5 Mon Sep 17 00:00:00 2001 From: Phil Christensen Date: Tue, 13 Nov 2018 15:02:29 -0800 Subject: [PATCH] [glad] fix python2 dependancy --- ports/glad/CONTROL | 2 +- ports/glad/portfile.cmake | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ports/glad/CONTROL b/ports/glad/CONTROL index 099da1cdfe..e8354c2057 100644 --- a/ports/glad/CONTROL +++ b/ports/glad/CONTROL @@ -1,3 +1,3 @@ Source: glad -Version: 0.1.28 +Version: 0.1.28-2 Description: Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. diff --git a/ports/glad/portfile.cmake b/ports/glad/portfile.cmake index d2fc4246eb..432c14503a 100644 --- a/ports/glad/portfile.cmake +++ b/ports/glad/portfile.cmake @@ -10,6 +10,10 @@ vcpkg_from_github( HEAD_REF master ) +vcpkg_find_acquire_program(PYTHON2) +get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY) +set(ENV{PATH} "$ENV{PATH};${PYTHON2_DIR}") + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA