Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16...3.23)
cmake_minimum_required(VERSION 3.22...3.23)
project(Halide
VERSION 15.0.0
DESCRIPTION "Halide compiler and libraries"
Expand Down
10 changes: 5 additions & 5 deletions README_cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ we strongly suggest reading through the [CMake documentation][cmake-docs] first.

## Installing CMake

Halide requires at least version 3.16, which was released in November 2019.
Halide requires at least version 3.22, which was released in November 2021.
Fortunately, getting a recent version of CMake couldn't be easier, and there are
multiple good options on any system to do so. Generally, one should always have
the most recent version of CMake installed system-wide. CMake is committed to
Expand Down Expand Up @@ -95,8 +95,8 @@ is also a viable option.

There are a few good ways to install a modern CMake on Ubuntu:

1. If you're on Ubuntu Linux 20.04 (focal), then simply running
`sudo apt install cmake` will get you CMake 3.16.
1. If you're on Ubuntu Linux 22.04 (Jammy Jellyfish), then simply running
`sudo apt install cmake` will get you CMake 3.22.
2. If you are on an older Ubuntu release or would like to use the newest CMake,
try installing via the snap store: `snap install cmake`. Be sure you do not
already have `cmake` installed via APT. The snap package automatically stays
Expand Down Expand Up @@ -542,7 +542,7 @@ No matter how you intend to use Halide, you will need some basic CMake
boilerplate.

```cmake
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(HalideExample)

set(CMAKE_CXX_STANDARD 17) # or newer
Expand Down Expand Up @@ -1009,7 +1009,7 @@ using [`install(FILES)`][install-files] and the
# Contributing CMake code to Halide

When contributing new CMake code to Halide, keep in mind that the minimum
version is 3.16. Therefore, it is possible (and indeed required) to use modern
version is 3.22. Therefore, it is possible (and indeed required) to use modern
CMake best practices.

Like any large and complex system with a dedication to preserving backwards
Expand Down
2 changes: 1 addition & 1 deletion apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Test apps from the perspective of a consuming project.
##

cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(Halide_apps)

if (WIN32)
Expand Down
2 changes: 1 addition & 1 deletion apps/HelloWasm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(HelloWasm)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/bgu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(bgu)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/bilateral_grid/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(bilateral_grid)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/blur/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(blur)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/c_backend/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(c_backend)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/camera_pipe/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(camera_pipe)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/conv_layer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(conv_layer)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/cuda_mat_mul/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(cuda_mat_mul)

# This just checks whether CUDA is available ahead of time to allow
Expand Down
2 changes: 1 addition & 1 deletion apps/depthwise_separable_conv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(depthwise_separable_conv)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/fft/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(fft)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/hannk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(hannk)

# We need to set this for some of the subprojects pulled in by TFLite (eg flatbuffers)
Expand Down
2 changes: 1 addition & 1 deletion apps/hannk/cmake/superbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16...3.21)
cmake_minimum_required(VERSION 3.22...3.23)
project(hannk_superbuild LANGUAGES NONE)

##
Expand Down
2 changes: 1 addition & 1 deletion apps/harris/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(harris)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/hist/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(hist)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/iir_blur/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(iir_blur)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/interpolate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(interpolate)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/lens_blur/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(lens_blur)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/linear_algebra/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(linear_algebra)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/local_laplacian/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(local_laplacian)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/max_filter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(max_filter)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/nl_means/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(nl_means)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/resize/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(resize)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/stencil_chain/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(stencil_chain)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/unsharp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(unsharp)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion apps/wavelet/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(wavelet)

enable_testing()
Expand Down
4 changes: 2 additions & 2 deletions cmake/BundleStatic.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)

##
# This module provides a utility for bundling a set of IMPORTED
Expand All @@ -22,7 +22,7 @@ cmake_minimum_required(VERSION 3.16)
##

# All of the IMPORTED_ and INTERFACE_ properties should be accounted for below.
# https://cmake.org/cmake/help/v3.16/manual/cmake-properties.7.html#properties-on-targets
# https://cmake.org/cmake/help/v3.22/manual/cmake-properties.7.html#properties-on-targets

# Irrelevant properties:
# IMPORTED_IMPLIB(_<CONFIG>) # shared-only
Expand Down
2 changes: 1 addition & 1 deletion cmake/HalideGeneratorHelpers.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)

include(${CMAKE_CURRENT_LIST_DIR}/HalideTargetHelpers.cmake)

Expand Down
2 changes: 1 addition & 1 deletion packaging/common/HalideConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)

macro(Halide_fail message)
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "${message}")
Expand Down
2 changes: 1 addition & 1 deletion packaging/common/HalideHelpersConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)

set(Halide_HOST_TARGET @Halide_HOST_TARGET@)

Expand Down
2 changes: 1 addition & 1 deletion python_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16...3.23)
cmake_minimum_required(VERSION 3.22...3.23)
project(Halide_Python)

include(CMakeDependentOption)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(integration_tests NONE)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion test/integration/aot/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(aot)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion test/integration/jit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(jit)

enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion test/integration/xc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.22)
project(xc)

enable_testing()
Expand Down