Skip to content

Commit

Permalink
[Exp PyROOT] Unset variables before looking for Python
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
maxgalli committed Nov 22, 2019
1 parent 224c948 commit c1ef82e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/modules/RootBuildOptions.cmake
Expand Up @@ -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)
Expand Down

0 comments on commit c1ef82e

Please sign in to comment.