From cf9177c19ca1759686b12f39075544c9cc01d022 Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Fri, 13 Aug 2021 21:15:22 +0200 Subject: [PATCH] Switch to using Python3 module to detect a python `PythonInterp` is old and deprecated module which may gave up on a system with multiple python installation like 2.7 and 3.x where `/usr/bin/python` is 2.7. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c692f65df..cee9928c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,8 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/utils.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/options.cmake) # RetDec, and some dependencies (e.g. LLVM, Keystone), require Python 3. -find_package(PythonInterp 3.4 REQUIRED) +find_package(Python3 3.4 REQUIRED) +set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE}) ### Variables.