]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add configured compiler defines to informational output,
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 11 Jan 2026 13:51:31 +0000 (14:51 +0100)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 20 Jan 2026 11:56:04 +0000 (12:56 +0100)
this eases debugging, especially in CI where further inspection is hard.

CMakeLists.txt

index 1886413e03fe0461fc46b87683430d26792b95f0..b9bfbed7216756bcac92dbf0a509e8f455c9f3b8 100644 (file)
@@ -1661,6 +1661,16 @@ if(BUILD_TESTING)
     add_subdirectory(test)
 endif()
 
+#============================================================================
+# Config summary
+#============================================================================
+message("")
+message(STATUS "The following defines have been set (partial list):\n")
+get_property(propvalraw DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY COMPILE_DEFINITIONS)
+list(SORT propvalraw)
+string(REPLACE ";" " " propval "${propvalraw}")
+message("CURRENT_SOURCE_DIR: ${propval}\n")
+
 add_feature_info(WITH_GZFILEOP WITH_GZFILEOP "Compile with support for gzFile related functions")
 add_feature_info(ZLIB_COMPAT ZLIB_COMPAT "Compile with zlib compatible API")
 add_feature_info(ZLIB_ALIASES ZLIB_ALIASES "Compile with zlib compatible CMake targets")
@@ -1715,7 +1725,7 @@ endif()
 
 add_feature_info(INSTALL_UTILS INSTALL_UTILS "Copy minigzip and minideflate during install")
 
-FEATURE_SUMMARY(WHAT ALL INCLUDE_QUIET_PACKAGES)
+feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES)
 
 #============================================================================
 # CPack