ci: avoid cmake -Hpath

This is an undocumented option similar to the `-Spath' option introduced
in cmake 3.13.
Replace all instances of `-Hpath' with `-Spath' in macos workflow.
Replace `-H. -Bpath' with `mkdir path; cd ./path; cmake ..' in zuul
scripts since it runs an older version of cmake.

Fixes #9008
Closes #9014
This commit is contained in:
Emanuele Torre 2022-06-15 20:00:42 +02:00 committed by Daniel Stenberg
parent 8b83fbfe82
commit 79f915e8ec
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 12 additions and 4 deletions

View file

@ -90,7 +90,10 @@ if [ "$T" = "tidy" ]; then
fi
if [ "$T" = "cmake" ]; then
cmake -H. -Bbuild -DCURL_WERROR=ON $C
mkdir -p build
cd ./build
cmake .. -DCURL_WERROR=ON $C
cd ..
cmake --build build
env TFLAGS="!1139 $TFLAGS" cmake --build build --target test-nonflaky
fi