]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - support/dependencies/check-host-cmake.mk
core: reverse the argument order in check-host-cmake
[coffee/buildroot.git] / support / dependencies / check-host-cmake.mk
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
13 BR2_CMAKE ?= cmake
14 ifeq ($(call suitable-host-package,cmake,\
15         $(BR2_CMAKE_VERSION_MIN) $(BR2_CMAKE)),)
16 BR2_CMAKE = $(HOST_DIR)/usr/bin/cmake
17 BR2_CMAKE_HOST_DEPENDENCY = host-cmake
18 endif