Commit 341cd7b5d9a2edf1f2bc0d3bffee4734bbc185d4
1 parent
905f47a5
Tweak cmake-win
Avoid running generate_auto_job -- rather than using maintainer mode, just enable WERROR.
Showing
1 changed file
with
10 additions
and
1 deletions
cmake-win
| @@ -26,10 +26,19 @@ case $tool in | @@ -26,10 +26,19 @@ case $tool in | ||
| 26 | ;; | 26 | ;; |
| 27 | esac | 27 | esac |
| 28 | if [ "$mode" = "maint" ]; then | 28 | if [ "$mode" = "maint" ]; then |
| 29 | - args=("${args[@]}" -DMAINTAINER_MODE=1 -DBUILD_DOC=0 -DBUILD_STATIC_LIBS=0) | 29 | + args=("${args[@]}" -DWERROR=1 -DBUILD_STATIC_LIBS=0) |
| 30 | elif [ "$mode" = "ci" ]; then | 30 | elif [ "$mode" = "ci" ]; then |
| 31 | args=("${args[@]}" -DCI_MODE=1 -DINSTALL_MANUAL=1) | 31 | args=("${args[@]}" -DCI_MODE=1 -DINSTALL_MANUAL=1) |
| 32 | fi | 32 | fi |
| 33 | 33 | ||
| 34 | set -x | 34 | set -x |
| 35 | cmake "${args[@]}" $dir | 35 | cmake "${args[@]}" $dir |
| 36 | +set +x | ||
| 37 | +if [ "$tool" = "msvc" ]; then | ||
| 38 | + echo "" | ||
| 39 | + echo "*****************************************************************" | ||
| 40 | + echo "*** Remember to pass --config RelWithDebInfo to cmake --build ***" | ||
| 41 | + echo "*** and -C RelWithDebInfo to ctest ***" | ||
| 42 | + echo "*****************************************************************" | ||
| 43 | + echo "" | ||
| 44 | +fi |