Skip to content

Commit ca60485

Browse files
committed
Set python exe to simplify venv dir
GDAL uses the python exe to determine what directory structure to use. When using the system python it defaults to local/lib/... but when it detects a venv it uses lib/.. This matches the other python libraries so its a small improvement.
1 parent 66a01d5 commit ca60485

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SuperBuild/cmake/External-GDAL.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ExternalProject_Add(${_proj_name}
1717
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
1818
-DCMAKE_INSTALL_PREFIX:PATH=${SB_INSTALL_DIR}
1919
-DGDAL_PYTHON_INSTALL_PREFIX=${PYTHON_HOME}
20+
-DPython_EXECUTABLE=${PYTHON_EXE_PATH}
2021
-DBUILD_PYTHON_BINDINGS=ON
2122
${WIN32_CMAKE_ARGS}
2223
#--Build step-----------------

0 commit comments

Comments
 (0)