Commit d567128 for zlib
commit d5671281abac25a579c22cd19fab8e0c1af157a5
Author: Vollstrecker <werner@vollstreckernet.de>
Date: Thu Feb 26 16:48:12 2026 +0100
CMake: Rename the targets to the same schema.
diff --git a/contrib/gcc_gvmat64/CMakeLists.txt b/contrib/gcc_gvmat64/CMakeLists.txt
index 5c2fd30..e9f43c6 100644
--- a/contrib/gcc_gvmat64/CMakeLists.txt
+++ b/contrib/gcc_gvmat64/CMakeLists.txt
@@ -8,13 +8,13 @@ else(MSVC)
enable_language(ASM)
endif(MSVC)
-add_library(gvmat64 OBJECT gvmat64.S)
-set_target_properties(gvmat64 PROPERTIES LINKER_LANGUAGE C)
+add_library(zlib_gvmat64 OBJECT gvmat64.S)
+set_target_properties(zlib_gvmat64 PROPERTIES LINKER_LANGUAGE C)
if(ZLIB_BUILD_SHARED)
- target_sources(zlib PRIVATE $<TARGET_OBJECTS:gvmat64>)
+ target_sources(zlib PRIVATE $<TARGET_OBJECTS:zlib_gvmat64>)
endif(ZLIB_BUILD_SHARED)
if(ZLIB_BUILD_STATIC)
- target_sources(zlibstatic PRIVATE $<TARGET_OBJECTS:gvmat64>)
+ target_sources(zlibstatic PRIVATE $<TARGET_OBJECTS:zlib_gvmat64>)
endif(ZLIB_BUILD_STATIC)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b2b6b07..e6a9766 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -58,16 +58,16 @@ if(ZLIB_BUILD_SHARED)
endif(ZLIB_BUILD_SHARED)
if(ZLIB_BUILD_STATIC)
- add_executable(zlib_static_example example.c)
- target_link_libraries(zlib_static_example ZLIB::ZLIBSTATIC)
+ add_executable(zlib_examplestatic example.c)
+ target_link_libraries(zlib_examplestatic ZLIB::ZLIBSTATIC)
target_compile_definitions(
- zlib_static_example
+ zlib_examplestatic
PRIVATE ZLIB_BUILD
$<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>)
- add_test(NAME zlib_static_example COMMAND zlib_static_example)
+ add_test(NAME zlib_examplestatic COMMAND zlib_examplestatic)
- add_executable(static_minigzip minigzip.c)
- target_link_libraries(static_minigzip ZLIB::ZLIBSTATIC)
+ add_executable(minigzipstatic minigzip.c)
+ target_link_libraries(minigzipstatic ZLIB::ZLIBSTATIC)
if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL
"Clang")
@@ -117,13 +117,13 @@ if(ZLIB_BUILD_STATIC)
STREQUAL "Clang")
if(HAVE_OFF64_T)
- add_executable(zlib_static_example64 example.c)
+ add_executable(zlib_example64static example.c)
target_compile_definitions(
- zlib_static_example64
+ zlib_example64static
PRIVATE ZLIB_BUILD
$<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>)
- target_link_libraries(zlib_static_example64 ZLIB::ZLIBSTATIC)
- add_test(NAME zlib_static_example64 COMMAND zlib_static_example64)
+ target_link_libraries(zlib_example64static ZLIB::ZLIBSTATIC)
+ add_test(NAME zlib_example64static COMMAND zlib_example64static)
endif(HAVE_OFF64_T)
endif(ZLIB_BUILD_STATIC)