From 4bd3f6b6fb98813ab9e2bb85879e2d96bea89fe2 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Mon, 6 May 2024 18:03:08 +0200 Subject: [PATCH] Look for Python3 again in `SearchInstalledSoftware.cmake` This commit essentially reverts a288ff9 from four years ago, which was also part of the multi-python machinery that is not necessary anymore after Python 2 support was dropped. Also, make the choice of looked-up components consistent with what is actually required. --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9775b07f10..cc816bf4b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,11 +113,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR ) message(FATAL_ERROR "Unable to find Python interpreter, required for builds and testing. -Please install Python or specify the PYTHON_EXECUTABLE CMake variable.") - endif() - - if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 ) - message(FATAL_ERROR "Python 2.7 or newer is required") +Please install Python or specify the Python3_EXECUTABLE CMake variable.") endif() # Check prebuilt llvm/utils.