check-host-cmake.mk 624 B

12345678910111213141516
  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. #
  8. BR2_CMAKE_VERSION_MIN = $(BR2_HOST_CMAKE_AT_LEAST)
  9. BR2_CMAKE_CANDIDATES ?= cmake cmake3
  10. BR2_CMAKE ?= $(call suitable-host-package,cmake,\
  11. $(BR2_CMAKE_VERSION_MIN) $(BR2_CMAKE_CANDIDATES))
  12. ifeq ($(BR2_CMAKE),)
  13. BR2_CMAKE = $(HOST_DIR)/bin/cmake
  14. BR2_CMAKE_HOST_DEPENDENCY = host-cmake
  15. endif