From 28fc76e7332db04e253d861fb3e4f0e27949d9b1 Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Thu, 30 Apr 2020 00:23:48 -0700 Subject: [PATCH] [glad] Pass path to python explicitly to work on default Ubuntu 18.04 wherein 'python' is python2. --- ports/glad/portfile.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/glad/portfile.cmake b/ports/glad/portfile.cmake index 1c14ca77f..f94037d26 100644 --- a/ports/glad/portfile.cmake +++ b/ports/glad/portfile.cmake @@ -10,8 +10,6 @@ vcpkg_from_github( ) vcpkg_find_acquire_program(PYTHON3) -get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY) -vcpkg_add_to_path("${PYTHON3_DIR}") file(COPY ${CURRENT_INSTALLED_DIR}/include/KHR/khrplatform.h @@ -32,6 +30,7 @@ vcpkg_configure_cmake( -DGLAD_REPRODUCIBLE=ON -DGLAD_SPEC="gl" # {gl,egl,glx,wgl} -DGLAD_PROFILE="compatibility" # {core,compatibility} + -DPYTHON_EXECUTABLE=${PYTHON3} OPTIONS_DEBUG -DGLAD_GENERATOR="c-debug" )