Improve Summary

This commit is contained in:
luisangelsm
2026-03-30 18:30:57 +02:00
parent 042e429996
commit 8ddf1a8f90

View File

@ -191,13 +191,20 @@ if(BUILD_TESTS AND NOT BUILD_SERVER_STANDALONE)
endif()
# Summary
if(CMAKE_CONFIGURATION_TYPES)
string(JOIN ", " _configured_build_types ${CMAKE_CONFIGURATION_TYPES})
set(_build_type_summary "multi-config (${_configured_build_types})")
else()
set(_build_type_summary "${CMAKE_BUILD_TYPE}")
endif()
message(STATUS "")
message(STATUS "YACReader ${PROJECT_VERSION} build configuration:")
message(STATUS " Decompression backend: ${DECOMPRESSION_BACKEND}")
message(STATUS " PDF backend: ${PDF_BACKEND}")
message(STATUS " Build tests: ${BUILD_TESTS}")
message(STATUS " Server standalone: ${BUILD_SERVER_STANDALONE}")
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS " Build type: ${_build_type_summary}")
if(BUILD_NUMBER)
message(STATUS " Build number: ${BUILD_NUMBER}")
endif()