diff options
| author | Billy Robert O'Neal III <bion@microsoft.com> | 2020-04-30 00:23:48 -0700 |
|---|---|---|
| committer | Billy O'Neal <billy.oneal@gmail.com> | 2020-04-30 21:51:31 -0700 |
| commit | 28fc76e7332db04e253d861fb3e4f0e27949d9b1 (patch) | |
| tree | 3dffaa01499d5e8f4a8830e562f92c4512ece19c | |
| parent | 436f1de44bc6e1ebc663e71e187990bb41c6ddee (diff) | |
| download | vcpkg-28fc76e7332db04e253d861fb3e4f0e27949d9b1.tar.gz vcpkg-28fc76e7332db04e253d861fb3e4f0e27949d9b1.zip | |
[glad] Pass path to python explicitly to work on default Ubuntu 18.04 wherein 'python' is python2.
| -rw-r--r-- | ports/glad/portfile.cmake | 3 |
1 files changed, 1 insertions, 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"
)
|
