1# The cmake minimum version is set to either 3.18 or higher,
2# depending on the highest minimum version required by any
3# of the packages bundled in Buildroot. If a package is
4# bumped or a new one added, and it requires a higher
5# cmake version than the one provided by the host, our
6# cmake infra will catch it and build its own.
7#
8BR2_CMAKE_VERSION_MIN = $(BR2_HOST_CMAKE_AT_LEAST)
9
10BR2_CMAKE_CANDIDATES ?= cmake cmake3
11BR2_CMAKE ?= $(call suitable-host-package,cmake,\
12	$(BR2_CMAKE_VERSION_MIN) $(BR2_CMAKE_CANDIDATES))
13ifeq ($(BR2_CMAKE),)
14BR2_CMAKE = $(HOST_DIR)/bin/cmake
15BR2_CMAKE_HOST_DEPENDENCY = host-cmake
16endif
17