Show more output during build

- show output in ci-builds only on failure
This commit is contained in:
mhochsteger@cerbsim.com 2021-11-04 14:44:14 +01:00
parent 3910b29b0b
commit d2f8910af2

View File

@ -8,20 +8,27 @@ set (NETGEN_DEPENDENCIES)
set (LAPACK_DEPENDENCIES)
set (NETGEN_CMAKE_ARGS "" CACHE INTERNAL "")
set (SUBPROJECT_CMAKE_ARGS "" CACHE INTERNAL "")
set (SUBPROJECT_ARGS
LOG_DOWNLOAD ON
LOG_BUILD ON
LOG_INSTALL ON
LOG_CONFIGURE ON
LIST_SEPARATOR |
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/dependencies
)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14.0")
# only show output on failure in ci-builds
if(DEFINED ENV{CI} AND WIN32)
set (SUBPROJECT_ARGS
${SUBPROJECT_ARGS}
LOG_OUTPUT_ON_FAILURE 1
LOG_MERGED_STDOUTERR 1
LOG_DOWNLOAD ON
LOG_BUILD ON
LOG_INSTALL ON
LOG_CONFIGURE ON
)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14.0")
set (SUBPROJECT_ARGS
${SUBPROJECT_ARGS}
LOG_OUTPUT_ON_FAILURE ON
LOG_MERGED_STDOUTERR ON
)
endif()
endif()