diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2023-10-27 00:04:00 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2023-10-30 17:02:08 +0200 |
commit | 9d49edbc48d81f820870d43edb2c975beffa5485 (patch) | |
tree | f28dbdfae671cbc516ce2f6e9d0a04114f97d6e1 /indra/cmake/Python.cmake | |
parent | f7d2d40b3057f5bc249c88784b35443aad8de7aa (diff) |
DRTVWR-587 Bring back the previously reverted change
Diffstat (limited to 'indra/cmake/Python.cmake')
-rw-r--r-- | indra/cmake/Python.cmake | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/indra/cmake/Python.cmake b/indra/cmake/Python.cmake index da5d2ef22c..c8af9a528b 100644 --- a/indra/cmake/Python.cmake +++ b/indra/cmake/Python.cmake @@ -40,18 +40,15 @@ elseif (WINDOWS) ${regpaths} ${pymaybe} ) - find_package(Python3 COMPONENTS Interpreter) else() find_program(python python3) - - if (python) - set(PYTHONINTERP_FOUND ON) - endif (python) endif (DEFINED ENV{PYTHON}) -if (NOT python) +if (python) + set(PYTHONINTERP_FOUND ON) +else() message(FATAL_ERROR "No Python interpreter found") -endif (NOT python) +endif (python) set(PYTHON_EXECUTABLE "${python}" CACHE FILEPATH "Python interpreter for builds") mark_as_advanced(PYTHON_EXECUTABLE) |