Skip to content

Commit 3539813

Browse files
committed
[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
1 parent 42478d1 commit 3539813

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

mlir/cmake/modules/MLIRDetectPythonEnv.cmake

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

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

mlir/tools/mlir-vulkan-runner/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@ set(LLVM_OPTIONAL_SOURCES
88
if (MLIR_ENABLE_VULKAN_RUNNER)
99
message(STATUS "Building the Vulkan runner")
1010

11-
# At first try "FindVulkan" from:
12-
# https://cmake.org/cmake/help/v3.7/module/FindVulkan.html
13-
if (NOT CMAKE_VERSION VERSION_LESS 3.7.0)
14-
find_package(Vulkan)
15-
endif()
11+
find_package(Vulkan)
1612

1713
# If Vulkan is not found try a path specified by VULKAN_SDK.
1814
if (NOT Vulkan_FOUND)
1915
if ("$ENV{VULKAN_SDK}" STREQUAL "")
20-
message(FATAL_ERROR "Please use at least CMAKE 3.7.0 or provide "
16+
message(FATAL_ERROR "Vulkan not found through CMake; please provide "
2117
"VULKAN_SDK path as an environment variable")
2218
endif()
2319

0 commit comments

Comments
 (0)