Comply with CMP0148
See https://cmake.org/cmake/help/latest/policy/CMP0148.html
This commit is contained in:
parent
3229b9a2db
commit
312f39020b
@ -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} )
|
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} )
|
||||||
|
|
||||||
if(LLVM_INCLUDE_TESTS)
|
if(LLVM_INCLUDE_TESTS)
|
||||||
set(Python_ADDITIONAL_VERSIONS 2.7)
|
find_package(Python3 3.8 REQUIRED COMPONENTS Interpreter)
|
||||||
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()
|
|
||||||
|
|
||||||
# Check prebuilt llvm/utils.
|
# Check prebuilt llvm/utils.
|
||||||
if(EXISTS ${LLVM_TOOLS_BINARY_DIR}/FileCheck${CMAKE_EXECUTABLE_SUFFIX}
|
if(EXISTS ${LLVM_TOOLS_BINARY_DIR}/FileCheck${CMAKE_EXECUTABLE_SUFFIX}
|
||||||
|
Loading…
Reference in New Issue
Block a user