aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-05-27 16:51:07 -0700
committerJoão Valverde <j@v6e.pt>2023-05-27 16:55:53 -0700
commit875e77d78474a505bafe5a94cfb4a8e94794453e (patch)
treefb40002ba6c6c9a306cc5c096051bc0553ec231a
parent64af2eee2f21a107ea4cd08922b983a0c8e3a227 (diff)
CMake: Fix a python variable
Fix variable to use the correct case and use a cache variable while at it.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50557af99e..a5641e7bd5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,7 +85,7 @@ if(USE_MSYSTEM)
# Use the deprecated FindPythonInterp.cmake module to Work around bugs and odd behavior in MSYS2 CMake
# searching in the wrong paths for python3.exe using FindPython3.cmake
find_package(PythonInterp REQUIRED)
- set(Python3_Executable ${PYTHON_EXECUTABLE})
+ set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "")
else()
find_package(Python3 3.6 REQUIRED)
endif()