diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-17 19:36:20 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-07-17 19:36:20 +0000 |
commit | b0f9107c1ed96c3714a3c0723e4621d1f492d55f (patch) | |
tree | 9338a4974e241acf89bac04418a69279ab31d460 | |
parent | 1b1d1b18627830710aa88b91a646876186f727cc (diff) |
[CMake] Remove duplicated logic to find Python when doing a standalone build
I'm pretty sure there's no need to have this logic living in
LLDBStandalone. It doesn't appear anything in LLVM depends on this, and
We always go through LLDBConfig.cmake which has the canonical way to
find the Python libs and interpreter for LLDB.
Differential revision: https://reviews.llvm.org/D64821
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@366363 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/modules/LLDBStandalone.cmake | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cmake/modules/LLDBStandalone.cmake b/cmake/modules/LLDBStandalone.cmake index 8d89f7c29..b726797f8 100644 --- a/cmake/modules/LLDBStandalone.cmake +++ b/cmake/modules/LLDBStandalone.cmake @@ -77,18 +77,6 @@ include(HandleLLVMOptions) include(CheckAtomic) include(LLVMDistributionSupport) -set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 2.7) -if (PYTHON_EXECUTABLE STREQUAL "") - include(FindPythonInterp) - if( NOT PYTHONINTERP_FOUND ) - message(FATAL_ERROR - "Unable to find Python interpreter, required for builds and testing. - Please install Python or specify the PYTHON_EXECUTABLE CMake variable.") - endif() -else() - message(STATUS "Found PythonInterp: ${PYTHON_EXECUTABLE}") -endif() - set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}") set(LLVM_INCLUDE_TESTS ON CACHE INTERNAL "") |