Commit 341cd7b5d9a2edf1f2bc0d3bffee4734bbc185d4

Authored by Jay Berkenbilt
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 26 ;;
27 27 esac
28 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 30 elif [ "$mode" = "ci" ]; then
31 31 args=("${args[@]}" -DCI_MODE=1 -DINSTALL_MANUAL=1)
32 32 fi
33 33  
34 34 set -x
35 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
... ...