Skip to content

Commit 7c2f227

Browse files
committed
Findminizip-ng.cmake now fully handles library names without trailing -ng
Signed-off-by: Joseph Goldstone <[email protected]>
1 parent a9ca7e5 commit 7c2f227

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

share/cmake/modules/Findminizip-ng.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL)
150150
lib64 lib
151151
)
152152

153+
if (minizip-ng_LIBRARY)
154+
cmake_path(GET minizip-ng_LIBRARY STEM _lib_stem)
155+
if (_lib_stem STREQUAL "libminizip")
156+
set(minizip_LIBRARY ${minizip-ng_LIBRARY})
157+
endif()
158+
endif()
159+
153160
# Get version from header or pkg-config
154161
if(minizip-ng_INCLUDE_DIR)
155162
list(GET minizip-ng_INCLUDE_DIR 0 _minizip-ng_INCLUDE_DIR)

0 commit comments

Comments
 (0)