Skip to content

Commit

Permalink
IgnPython: restore PYTHON_EXECUTABLE for now (#223)
Browse files Browse the repository at this point in the history
* IgnPython: restore PYTHON_EXECUTABLE for now

The PYTHON_EXECUTABLE cmake variable was replaced by
Python3_EXECUTABLE in #218 for new versions of cmake.
This breaks packages currently using the previous
variable name. This restores PYTHON_EXECUTABLE to
allow a tick-tock cycle for downstream packages
to transition.

Signed-off-by: Steve Peters <[email protected]>
Co-authored-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
scpeters and j-rivero authored Apr 5, 2022
1 parent 3617a83 commit c51ef5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/IgnPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ else()
set(Python3_Interpreter_FOUND ${PYTHONINTERP_FOUND})
set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
endif()
endif()

# Tick-tock PYTHON_EXECUTABLE until Python3_EXECUTABLE is released
# TODO(jrivero) ign-cmake3: start the deprecation cycle of PYTHON_EXECUTABLE
if(Python3_EXECUTABLE AND NOT PYTHON_EXECUTABLE)
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
endif()

0 comments on commit c51ef5d

Please sign in to comment.