Skip to content

Commit

Permalink
[interpreter] Comply with CMP0148
Browse files Browse the repository at this point in the history
  • Loading branch information
vepadulano committed May 13, 2024
1 parent 69a7a7f commit 44cff59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions interpreter/CMakeLists.txt
Expand Up @@ -366,14 +366,7 @@ else()
# set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} )

if(LLVM_INCLUDE_TESTS OR clingtest)
set(Python_ADDITIONAL_VERSIONS 2.7)
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 Python3_EXECUTABLE CMake variable.")
endif()
find_package(Python3 3.8 REQUIRED COMPONENTS Interpreter)

# Check prebuilt llvm/utils.
if(EXISTS ${LLVM_TOOLS_BINARY_DIR}/FileCheck${CMAKE_EXECUTABLE_SUFFIX}
Expand Down
9 changes: 1 addition & 8 deletions interpreter/cling/CMakeLists.txt
Expand Up @@ -107,14 +107,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} )

if(LLVM_INCLUDE_TESTS)
set(Python_ADDITIONAL_VERSIONS 2.7)
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 Python3_EXECUTABLE CMake variable.")
endif()
find_package(Python3 3.8 REQUIRED COMPONENTS Interpreter)

# Check prebuilt llvm/utils.
if(EXISTS ${LLVM_TOOLS_BINARY_DIR}/FileCheck${CMAKE_EXECUTABLE_SUFFIX}
Expand Down

0 comments on commit 44cff59

Please sign in to comment.