From 86eff44a5efa01273788bc46e0001c4102cafff2 Mon Sep 17 00:00:00 2001 From: fnoop Date: Fri, 31 Jan 2020 17:18:36 +0000 Subject: [PATCH] Honour PYTHON_EXECUTABLE environment variable if set and pass to cmake #14077 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index bfb27ea7b4..b2961e6529 100644 --- a/Makefile +++ b/Makefile @@ -141,6 +141,11 @@ else endif +# Pick up specific Python path if set +ifdef PYTHON_EXECUTABLE + CMAKE_ARGS += -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} +endif + # Functions # -------------------------------------------------------------------- # describe how to build a cmake config