]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Relocate CMake target export definitions
authorDon Olmstead <don.j.olmstead@gmail.com>
Thu, 1 Feb 2024 20:49:11 +0000 (12:49 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 19 Jun 2024 12:15:54 +0000 (14:15 +0200)
commit664e861decb629636e9f90e728b0c7abedb17b7a
tree9c0f0d7e9441f8e327f8a54b06edb86bb81d9874
parent6fbf2e3d8ed57ac42e4346a5f6f0d634f49fb05c
Relocate CMake target export definitions

When exporting a CMake target the `install(TARGETS ${ZLIB_INSTALL_LIBRARIES})` is repeated with an `EXPORT` parameter. On Windows this would install the `.dll` files into the `lib` directory.

Set the `EXPORT_NAME` earlier and unconditionally on the `TARGET`. Then move the `EXPORT` to a single `install(TARGETS)`.
CMakeLists.txt