Skip to content
Snippets Groups Projects
Commit 630b4432 authored by Andrey Lihatskiy's avatar Andrey Lihatskiy
Browse files

Revert "DRTVWR-587 Bring back the previously reverted change"

This reverts commit 9d49edbc.
parent 9d49edbc
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -40,15 +40,18 @@ elseif (WINDOWS) ...@@ -40,15 +40,18 @@ elseif (WINDOWS)
${regpaths} ${regpaths}
${pymaybe} ${pymaybe}
) )
find_package(Python3 COMPONENTS Interpreter)
else() else()
find_program(python python3) find_program(python python3)
if (python)
set(PYTHONINTERP_FOUND ON)
endif (python)
endif (DEFINED ENV{PYTHON}) endif (DEFINED ENV{PYTHON})
if (python) if (NOT python)
set(PYTHONINTERP_FOUND ON)
else()
message(FATAL_ERROR "No Python interpreter found") message(FATAL_ERROR "No Python interpreter found")
endif (python) endif (NOT python)
set(PYTHON_EXECUTABLE "${python}" CACHE FILEPATH "Python interpreter for builds") set(PYTHON_EXECUTABLE "${python}" CACHE FILEPATH "Python interpreter for builds")
mark_as_advanced(PYTHON_EXECUTABLE) mark_as_advanced(PYTHON_EXECUTABLE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment