diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2026-01-03 10:59:56 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-12 11:10:01 -0800 |
| commit | c6d16d4c3b59d2950e15ee557d40ace748ed5b40 (patch) | |
| tree | 597692f1a2cfab87ca1105afce98f7c8aafe7246 /contrib/ada | |
| parent | 9444f8641b3dc9f3de11caa2d852400bf4776a22 (diff) | |
| download | zlib-c6d16d4c3b59d2950e15ee557d40ace748ed5b40.tar.gz zlib-c6d16d4c3b59d2950e15ee557d40ace748ed5b40.tar.bz2 zlib-c6d16d4c3b59d2950e15ee557d40ace748ed5b40.zip | |
CMake: Name targets consistently.
Diffstat (limited to 'contrib/ada')
| -rw-r--r-- | contrib/ada/CMakeLists.txt | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/contrib/ada/CMakeLists.txt b/contrib/ada/CMakeLists.txt index 3ede5f9d..a0dcf0c1 100644 --- a/contrib/ada/CMakeLists.txt +++ b/contrib/ada/CMakeLists.txt | |||
| @@ -46,21 +46,24 @@ function(ZLIB_ADA_findTestEnv testName) | |||
| 46 | endfunction(ZLIB_ADA_findTestEnv testName) | 46 | endfunction(ZLIB_ADA_findTestEnv testName) |
| 47 | 47 | ||
| 48 | if(ZLIB_ADA_BUILD_SHARED) | 48 | if(ZLIB_ADA_BUILD_SHARED) |
| 49 | ada_add_library(zlib-Ada SHARED | 49 | ada_add_library(zlib_ada_Ada SHARED |
| 50 | zlib-thin.adb | 50 | zlib-thin.adb |
| 51 | zlib.adb) | 51 | zlib.adb) |
| 52 | 52 | ||
| 53 | target_link_libraries(zlib-Ada | 53 | set_target_properties(zlib_ada_Ada |
| 54 | PROPERTIES OUTPUT_NAME zlib-ada) | ||
| 55 | |||
| 56 | target_link_libraries(zlib_ada_Ada | ||
| 54 | INTERFACE ZLIB::ZLIB) | 57 | INTERFACE ZLIB::ZLIB) |
| 55 | 58 | ||
| 56 | ada_add_library(zlib-streams SHARED | 59 | ada_add_library(zlib_ada_streams SHARED |
| 57 | zlib-streams.adb) | 60 | zlib-streams.adb) |
| 58 | 61 | ||
| 59 | target_link_libraries(zlib-streams | 62 | target_link_libraries(zlib_ada_streams |
| 60 | PUBLIC | 63 | PUBLIC |
| 61 | zlib-Ada) | 64 | zlib_ada_Ada) |
| 62 | 65 | ||
| 63 | ada_find_ali(zlib-streams) | 66 | ada_find_ali(zlib_ada_streams) |
| 64 | 67 | ||
| 65 | if(ZLIB_ADA_BUILD_TESTING) | 68 | if(ZLIB_ADA_BUILD_TESTING) |
| 66 | enable_testing() | 69 | enable_testing() |
| @@ -142,24 +145,24 @@ if(ZLIB_ADA_BUILD_SHARED) | |||
| 142 | endif(ZLIB_ADA_BUILD_SHARED) | 145 | endif(ZLIB_ADA_BUILD_SHARED) |
| 143 | 146 | ||
| 144 | if(ZLIB_ADA_BUILD_STATIC) | 147 | if(ZLIB_ADA_BUILD_STATIC) |
| 145 | ada_add_library(zlib-AdaStatic STATIC | 148 | ada_add_library(zlib_ada_AdaStatic STATIC |
| 146 | zlib-thin.adb | 149 | zlib-thin.adb |
| 147 | zlib.adb) | 150 | zlib.adb) |
| 148 | 151 | ||
| 149 | target_link_libraries(zlib-AdaStatic | 152 | target_link_libraries(zlib_ada_AdaStatic |
| 150 | INTERFACE ZLIB::ZLIBSTATIC) | 153 | INTERFACE ZLIB::ZLIBSTATIC) |
| 151 | 154 | ||
| 152 | set_target_properties(zlib-AdaStatic | 155 | set_target_properties(zlib_ada_AdaStatic |
| 153 | PROPERTIES OUTPUT_NAME zlib-Ada${zlib_Ada_static_suffix}) | 156 | PROPERTIES OUTPUT_NAME zlib-ada${zlib_Ada_static_suffix}) |
| 154 | 157 | ||
| 155 | ada_add_library(zlib-streamsStatic STATIC | 158 | ada_add_library(zlib_ada_streamsStatic STATIC |
| 156 | zlib-streams.adb) | 159 | zlib-streams.adb) |
| 157 | 160 | ||
| 158 | target_link_libraries(zlib-streamsStatic | 161 | target_link_libraries(zlib_ada_streamsStatic |
| 159 | PUBLIC | 162 | PUBLIC |
| 160 | zlib-AdaStatic) | 163 | zlib_ada_AdaStatic) |
| 161 | 164 | ||
| 162 | ada_find_ali(zlib-streamsStatic) | 165 | ada_find_ali(zlib_ada_streamsStatic) |
| 163 | 166 | ||
| 164 | if(ZLIB_ADA_BUILD_TESTING) | 167 | if(ZLIB_ADA_BUILD_TESTING) |
| 165 | enable_testing() | 168 | enable_testing() |
