diff options
| author | Dave Parks <davep@lindenlab.com> | 2023-04-06 18:59:01 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2023-04-06 18:59:01 -0500 |
| commit | a6d03d1e98cc5e69d637115a568b242c97dcc475 (patch) | |
| tree | 5fc8ee3f8a284a206f7f073b5d4ea238c0b943cb /indra/cmake/Python.cmake | |
| parent | b127e1bd12442953801eb6b53f052aa69d8ee580 (diff) | |
| parent | 15a9a0e8db64c1435ebd45e88cf81c418f87a057 (diff) | |
Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559
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") |
