diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake --- a/lldb/cmake/modules/LLDBConfig.cmake +++ b/lldb/cmake/modules/LLDBConfig.cmake @@ -250,16 +250,23 @@ endif() # Set the same variables as FindPythonInterp and FindPythonLibs. - set(PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}" PARENT_SCOPE) - set(PYTHON_LIBRARY "${PYTHON_LIBRARY}" PARENT_SCOPE) - set(PYTHON_DLL "${PYTHON_DLL}" PARENT_SCOPE) - set(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}" PARENT_SCOPE) + set(PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}" CACHE PATH "") + set(PYTHON_LIBRARY "${PYTHON_LIBRARY}" CACHE PATH "") + set(PYTHON_DLL "${PYTHON_DLL}" CACHE PATH "") + set(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_DIR}" CACHE PATH "") set(PYTHONLIBS_VERSION_STRING "${PYTHONLIBS_VERSION_STRING}" PARENT_SCOPE) set(PYTHON_VERSION_STRING "${PYTHON_VERSION_STRING}" PARENT_SCOPE) set(PYTHON_VERSION_MAJOR "${PYTHON_VERSION_MAJOR}" PARENT_SCOPE) set(PYTHON_VERSION_MINOR "${PYTHON_VERSION_MINOR}" PARENT_SCOPE) set(PYTHON_VERSION_PATCH "${PYTHON_VERSION_PATCH}" PARENT_SCOPE) + mark_as_advanced( + PYTHON_EXECUTABLE + PYTHON_LIBRARY + PYTHON_DLL + PYTHON_INCLUDE_DIR + ) + message(STATUS "LLDB Found PythonExecutable: ${PYTHON_EXECUTABLE} (${PYTHON_VERSION_STRING})") message(STATUS "LLDB Found PythonLibs: ${PYTHON_LIBRARY} (${PYTHONLIBS_VERSION_STRING})") message(STATUS "LLDB Found PythonDLL: ${PYTHON_DLL}")