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.
This commit is contained in:
Vadim Zeitlin
2025-06-09 14:58:49 +02:00
parent 813e01d0f9
commit ffa5d70b87
2 changed files with 4 additions and 2 deletions

View File

@@ -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}")

View File

@@ -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}")