core: allow check-host-cmake.sh to try several candidates
authorCarlos Santos <casantos@datacom.ind.br>
Sun, 7 May 2017 04:32:19 +0000 (01:32 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 24 Jun 2017 19:25:45 +0000 (21:25 +0200)
commitcacc6d0b610f69a6af5f8a5b2af0032964e20973
tree55c9f5648e010a64d35243b9578dd93c57d0a3d2
parent77a7a15e4c14d2b39e661dca9b7c94e773b00e93
core: allow check-host-cmake.sh to try several candidates

This is useful on CentOS 7 whose "cmake" package provides cmake 2.8.12,
which is too old, but the "cmake3" package (from EPEL) provides version
3.6.3, which is satisfactory. Examples:

    $ sh support/dependencies/check-host-cmake.sh 2.8 cmake cmake3
    /usr/bin/cmake

    $ sh support/dependencies/check-host-cmake.sh 3.1 cmake cmake3
    /usr/bin/cmake3

    $ sh support/dependencies/check-host-cmake.sh 3.8 cmake cmake3
    (nothing)

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/dependencies/check-host-cmake.sh