From c1ef82efac72c83460bd5cff2e455113466fb1a7 Mon Sep 17 00:00:00 2001 From: Massimiliano Galli Date: Thu, 21 Nov 2019 09:40:52 +0100 Subject: [PATCH] [Exp PyROOT] Unset variables before looking for Python The following CMake variables: PYTHON_INCLUDE_DIR PYTHON_LIBRARY are unset in order to allow the use to specify only -DPYTHON_EXECUTABLE at configure time. The following variable: CMAKE_INSTALL_PYROOTIR is unset in order to install the package in the correct path. --- cmake/modules/RootBuildOptions.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/RootBuildOptions.cmake b/cmake/modules/RootBuildOptions.cmake index 2d80a791e616b..6c8e37627a92c 100644 --- a/cmake/modules/RootBuildOptions.cmake +++ b/cmake/modules/RootBuildOptions.cmake @@ -388,6 +388,9 @@ include_regular_expression("^[^.]+$|[.]h$|[.]icc$|[.]hxx$|[.]hpp$") #---Check for Python installation------------------------------------------------------- message(STATUS "Looking for python") +unset(PYTHON_INCLUDE_DIR CACHE) +unset(PYTHON_LIBRARY CACHE) +unset(CMAKE_INSTALL_PYROOTDIR) # Python is required by header and manpage generation if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.14)