diff options
| author | Bennett Goble <signal@lindenlab.com> | 2023-03-31 13:09:57 -0700 |
|---|---|---|
| committer | Bennett Goble <signal@lindenlab.com> | 2023-04-05 15:44:24 -0700 |
| commit | 6926368ff8fda01db062314801ce2b71d86ad02c (patch) | |
| tree | ae957e2ef93ae54e49bd3cf13b97daa5b92f3314 /indra/cmake/Python.cmake | |
| parent | b09f61f6bfe8fdaaff2693180af8b7b26d3a9176 (diff) | |
SL-18839: Add basic Github build
Diffstat (limited to 'indra/cmake/Python.cmake')
| -rw-r--r-- | indra/cmake/Python.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/cmake/Python.cmake b/indra/cmake/Python.cmake index dbf5033ce5..f9259f6c2b 100644 --- a/indra/cmake/Python.cmake +++ b/indra/cmake/Python.cmake @@ -2,7 +2,11 @@ set(PYTHONINTERP_FOUND) -if (WINDOWS) +if (DEFINED ENV{PYTHON}) + # Allow python executable to be explicitly set + set(python "$ENV{PYTHON}") + set(PYTHONINTERP_FOUND ON) +elseif (WINDOWS) # On Windows, explicitly avoid Cygwin Python. # if the user has their own version of Python installed, prefer that @@ -43,7 +47,7 @@ else() if (python) set(PYTHONINTERP_FOUND ON) endif (python) -endif (WINDOWS) +endif (DEFINED ENV{PYTHON}) if (NOT python) message(FATAL_ERROR "No Python interpreter found") |
