Skip to content

Commit

Permalink
Update easybuild/easyblocks/generic/cmakemake.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Grund <[email protected]>
  • Loading branch information
Crivella and Flamefire authored Oct 1, 2024
1 parent 47f21b9 commit 2878569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/generic/cmakemake.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ def configure_step(self, srcdir=None, builddir=None):
if python_root:
python_version = LooseVersion(get_software_version('Python'))
python_exe = os.path.join(python_root, 'bin', 'python')
options['Python_EXECUTABLE'] = python_exe
# This is needed if someone is still using `find_package(PythonInterp ...)` in their CMakeLists.txt
# This is required for (deprecated) `find_package(PythonInterp ...)`
options['PYTHON_EXECUTABLE'] = python_exe
# Ensure that both `find_package(Python) and find_package(Python2/3)` work as intended
options['Python_EXECUTABLE'] = python_exe
if python_version >= "3":
options['Python3_EXECUTABLE'] = python_exe
else:
Expand Down

0 comments on commit 2878569

Please sign in to comment.