Skip to content

Commit

Permalink
Reduce AppVeyor build verbosity by passing extra args to sub-CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Jul 5, 2017
1 parent 78d58a5 commit 3d390db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions appveyor.yml
Expand Up @@ -58,9 +58,11 @@ install:
# the current PATH.
- echo cmake -G "%generator_name%" -DDEBUG=1
-DBOXBACKUP_VERSION=%compiled_version%
-DSUB_CMAKE_EXTRA_ARGS="-- /verbosity:minimal"
%APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\windows
- cmake -G "%generator_name%" -DDEBUG=1
-DBOXBACKUP_VERSION=%compiled_version%
-DSUB_CMAKE_EXTRA_ARGS="-- /verbosity:minimal"
%APPVEYOR_BUILD_FOLDER%\infrastructure\cmake\windows

# Leave the current directory in the correct place to find the solution file using its relative path above.
Expand Down
5 changes: 3 additions & 2 deletions infrastructure/cmake/windows/CMakeLists.txt
Expand Up @@ -35,7 +35,7 @@ ExternalProject_Add(zlib
URL "http://zlib.net/zlib-${ZLIB_VERSION}.tar.gz"
URL_HASH ${ZLIB_HASH}
DOWNLOAD_NO_PROGRESS 1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${install_dir}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${install_dir} ${SUB_CMAKE_EXTRA_ARGS}
# We need to build both versions, debug and release, because cmake requires both to be
# present to generate its multi-configuration project files for Visual Studio/MSBuild.
INSTALL_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --target install --config Debug
Expand Down Expand Up @@ -86,7 +86,7 @@ ExternalProject_Add(pcre
SVN_REPOSITORY svn://vcs.exim.org/pcre/code/trunk
SVN_REVISION -r 1677
DOWNLOAD_NO_PROGRESS 1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${install_dir}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${install_dir} ${SUB_CMAKE_EXTRA_ARGS}
-DPCRE_SUPPORT_LIBREADLINE=OFF
-DPCRE_SUPPORT_LIBBZ2=OFF
# We need to build both versions, debug and release, because cmake requires both to be
Expand Down Expand Up @@ -122,5 +122,6 @@ ExternalProject_Add(boxbackup
-DAPPVEYOR_MODE=1
-DDEBUG=${DEBUG}
${boxbackup_cmake_args}
${SUB_CMAKE_EXTRA_ARGS}
STEP_TARGETS configure build install
)

0 comments on commit 3d390db

Please sign in to comment.