git: 8e148e82a6b7 - main - math/vtk9: Force default python version in build

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 22 Nov 2021 17:24:23 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8e148e82a6b7b0f052fb5e8524ef1ca686ccd42b

commit 8e148e82a6b7b0f052fb5e8524ef1ca686ccd42b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-11-22 17:15:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-11-22 17:24:21 +0000

    math/vtk9: Force default python version in build
---
 math/vtk9/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/math/vtk9/Makefile b/math/vtk9/Makefile
index e1b8383b27f4..7583f31a6c2c 100644
--- a/math/vtk9/Makefile
+++ b/math/vtk9/Makefile
@@ -60,7 +60,7 @@ $w_DESC=	$w wrapping
 
 PYTHON_USES=		python:3.6+
 PYTHON_CMAKE_BOOL=	VTK_WRAP_PYTHON
-PYTHON_CMAKE_ON=	-DVTK_PYTHON_VERSION=${PYTHON_MAJOR_VER}
+PYTHON_CMAKE_ON=	-DVTK_PYTHON_VERSION=${PYTHON_MAJOR_VER} -DPython3_EXECUTABLE=${PYTHON_CMD}
 PYTHON_VARS=		SUB_FILES=PKG-INFO SUB_LIST=PORTVERSION=${PORTVERSION}
 
 QT5_USES=		qt:5