From ffa5d70b87db417c2152e6203b9bc39d3347427e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 9 Jun 2025 14:58:49 +0200 Subject: [PATCH] Output SOCI version and build type information at the end Version is probably not very useful, but it is important to see at a glance if SOCI is to be built as static or shared library. Also move the status message about enabled backends to the end as well to make it easier to find and appear even when re-configuring in the same directory without any changes. --- CMakeLists.txt | 4 ++++ src/backends/CMakeLists.txt | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79861ab8..25ce9ec4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,3 +130,7 @@ install( "${CMAKE_CURRENT_BINARY_DIR}/soci-config-version.cmake" DESTINATION "${SOCI_INSTALL_CMAKEDIR}" ) + +# Final status +message(STATUS "SOCI ${SOCI_VERSION} will be built as ${SOCI_LIB_TYPE} library.") +message(STATUS "Enabled SOCI backends are: ${SOCI_ENABLED_BACKENDS}") diff --git a/src/backends/CMakeLists.txt b/src/backends/CMakeLists.txt index d2572815..4ff75b28 100644 --- a/src/backends/CMakeLists.txt +++ b/src/backends/CMakeLists.txt @@ -87,5 +87,3 @@ foreach(CURRENT_BACKEND IN LISTS SOCI_EXISTING_BACKENDS) endforeach() set(SOCI_ENABLED_BACKENDS "${ENABLED_BACKENDS}" CACHE INTERNAL "" FORCE) -message(STATUS "Enabled SOCI backends are: ${ENABLED_BACKENDS}") -