mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 02:49:00 +00:00
Tweak cmake-win
Avoid running generate_auto_job -- rather than using maintainer mode, just enable WERROR.
This commit is contained in:
parent
905f47a55f
commit
341cd7b5d9
11
cmake-win
11
cmake-win
@ -26,10 +26,19 @@ case $tool in
|
||||
;;
|
||||
esac
|
||||
if [ "$mode" = "maint" ]; then
|
||||
args=("${args[@]}" -DMAINTAINER_MODE=1 -DBUILD_DOC=0 -DBUILD_STATIC_LIBS=0)
|
||||
args=("${args[@]}" -DWERROR=1 -DBUILD_STATIC_LIBS=0)
|
||||
elif [ "$mode" = "ci" ]; then
|
||||
args=("${args[@]}" -DCI_MODE=1 -DINSTALL_MANUAL=1)
|
||||
fi
|
||||
|
||||
set -x
|
||||
cmake "${args[@]}" $dir
|
||||
set +x
|
||||
if [ "$tool" = "msvc" ]; then
|
||||
echo ""
|
||||
echo "*****************************************************************"
|
||||
echo "*** Remember to pass --config RelWithDebInfo to cmake --build ***"
|
||||
echo "*** and -C RelWithDebInfo to ctest ***"
|
||||
echo "*****************************************************************"
|
||||
echo ""
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user