aboutsummaryrefslogtreecommitdiffstats
path: root/cmake-win
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-21 15:25:25 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-21 15:50:17 +0200
commit341cd7b5d9a2edf1f2bc0d3bffee4734bbc185d4 (patch)
treee4f8a3ccae6a1365a88c233481fb0e6c520acc7f /cmake-win
parent905f47a55f08e209c0414cf4b5a2b94fb7362a5f (diff)
downloadqpdf-341cd7b5d9a2edf1f2bc0d3bffee4734bbc185d4.tar.zst
Tweak cmake-win
Avoid running generate_auto_job -- rather than using maintainer mode, just enable WERROR.
Diffstat (limited to 'cmake-win')
-rwxr-xr-xcmake-win11
1 files changed, 10 insertions, 1 deletions
diff --git a/cmake-win b/cmake-win
index 3a5278ef..2da055c5 100755
--- a/cmake-win
+++ b/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