check-host-cmake.mk 801 B

1234567891011121314151617181920
  1. # Versions before 3.0 are affected by the bug described in
  2. # https://git.busybox.net/buildroot/commit/?id=ef2c1970e4bff3be3992014070392b0e6bc28bd2
  3. # and fixed in upstream CMake in version 3.0:
  4. # https://cmake.org/gitweb?p=cmake.git;h=e8b8b37ef6fef094940d3384df5a1d421b9fa568
  5. #
  6. # Set this to either 3.0 or higher, depending on the highest minimum
  7. # version required by any of the packages bundled in Buildroot. If a
  8. # package is bumped or a new one added, and it requires a higher
  9. # version, our cmake infra will catch it and whine.
  10. #
  11. BR2_CMAKE_VERSION_MIN = 3.1
  12. BR2_CMAKE_CANDIDATES ?= cmake cmake3
  13. BR2_CMAKE ?= $(call suitable-host-package,cmake,\
  14. $(BR2_CMAKE_VERSION_MIN) $(BR2_CMAKE_CANDIDATES))
  15. ifeq ($(BR2_CMAKE),)
  16. BR2_CMAKE = $(HOST_DIR)/bin/cmake
  17. BR2_CMAKE_HOST_DEPENDENCY = host-cmake
  18. endif