Skip to content

Commit 4422eca

Browse files
yann-morin-1998jacmet
authored andcommitted
dependencies/cmake: blacklist cmake 3.7
cmake-3.7 has a bug in how it handles rpath, linking with libraries from the host. Until we completely understand the issue, just blacklist cmake-3.7. The issue has been reported upstream: http://public.kitware.com/pipermail/cmake/2017-February/064970.html Reported-by: Baruch Siach <[email protected]> Signed-off-by: "Yann E. MORIN" <[email protected]> Cc: Jörg Krause <[email protected]> Cc: Ben Boeckel <[email protected]> Cc: Samuel Martin <[email protected]> Signed-off-by: Peter Korsgaard <[email protected]>
1 parent 35e02ae commit 4422eca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

support/dependencies/check-host-cmake.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ version_min="${2}"
66
major_min="${version_min%.*}"
77
minor_min="${version_min#*.}"
88

9+
# cmake-3.7 incorrectly handles rpath, linking to host libraries
10+
blacklist_version="3.7"
11+
912
cmake=`which ${candidate}`
1013
if [ ! -x "${cmake}" ]; then
1114
# echo nothing: no suitable cmake found
@@ -27,6 +30,11 @@ version="$(${cmake} --version \
2730
major="${version%.*}"
2831
minor="${version#*.}"
2932

33+
if [ "${version}" = "${blacklist_version}" ]; then
34+
# echo nothing: no suitable cmake found
35+
exit 1
36+
fi
37+
3038
if [ ${major} -gt ${major_min} ]; then
3139
echo "${cmake}"
3240
else

0 commit comments

Comments
 (0)