[glad] Pass path to python explicitly to work on default Ubuntu 18.04 wherein 'python' is python2.

This commit is contained in:
Billy Robert O'Neal III 2020-04-30 00:23:48 -07:00 committed by Billy O'Neal
parent 436f1de44b
commit 28fc76e733

View File

@ -10,8 +10,6 @@ vcpkg_from_github(
) )
vcpkg_find_acquire_program(PYTHON3) vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
vcpkg_add_to_path("${PYTHON3_DIR}")
file(COPY file(COPY
${CURRENT_INSTALLED_DIR}/include/KHR/khrplatform.h ${CURRENT_INSTALLED_DIR}/include/KHR/khrplatform.h
@ -32,6 +30,7 @@ vcpkg_configure_cmake(
-DGLAD_REPRODUCIBLE=ON -DGLAD_REPRODUCIBLE=ON
-DGLAD_SPEC="gl" # {gl,egl,glx,wgl} -DGLAD_SPEC="gl" # {gl,egl,glx,wgl}
-DGLAD_PROFILE="compatibility" # {core,compatibility} -DGLAD_PROFILE="compatibility" # {core,compatibility}
-DPYTHON_EXECUTABLE=${PYTHON3}
OPTIONS_DEBUG OPTIONS_DEBUG
-DGLAD_GENERATOR="c-debug" -DGLAD_GENERATOR="c-debug"
) )