[MLIR] Removes CMake work-arounds.

CMake older than 3.20.0 is no longer supported.
This removes work-arounds for no longer supported versions.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D152101
This commit is contained in:
Mark de Wever 2023-06-04 17:42:38 +02:00
parent 42478d1473
commit 3539813f98
2 changed files with 2 additions and 13 deletions

View File

@ -2,13 +2,6 @@
# Finds and configures python packages needed to build MLIR Python bindings.
macro(mlir_configure_python_dev_packages)
if(CMAKE_VERSION VERSION_LESS "3.19.0")
message(SEND_ERROR
"Building MLIR Python bindings is known to rely on CMake features "
"that require at least version 3.19. Recommend upgrading to 3.19+ "
"for full support. Detected current version: ${CMAKE_VERSION}")
endif()
if(MLIR_DETECT_PYTHON_ENV_PRIME_SEARCH)
# Prime the search for python to see if there is a full development
# package. This seems to work around cmake bugs searching only for

View File

@ -8,16 +8,12 @@ set(LLVM_OPTIONAL_SOURCES
if (MLIR_ENABLE_VULKAN_RUNNER)
message(STATUS "Building the Vulkan runner")
# At first try "FindVulkan" from:
# https://cmake.org/cmake/help/v3.7/module/FindVulkan.html
if (NOT CMAKE_VERSION VERSION_LESS 3.7.0)
find_package(Vulkan)
endif()
# If Vulkan is not found try a path specified by VULKAN_SDK.
if (NOT Vulkan_FOUND)
if ("$ENV{VULKAN_SDK}" STREQUAL "")
message(FATAL_ERROR "Please use at least CMAKE 3.7.0 or provide "
message(FATAL_ERROR "Vulkan not found through CMake; please provide "
"VULKAN_SDK path as an environment variable")
endif()