Findminizip-ng.cmake now fully handles library names without trailing…#2214
Findminizip-ng.cmake now fully handles library names without trailing…#2214JGoldstone wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
Conversation
… -ng Signed-off-by: Joseph Goldstone <joseph.goldstone@mac.com>
|
Something similar came up with OpenImageIO and "auto-building" zlib-ng
Is minizip_LIBRARY is already defined, is it safe to redefine it to point to the un-suffixed minizip-ng library? I feel like maybe the safest thing to do is to only try to link static un-suffixed minizip.a (if minizip_LIBRARY is already set), but I could be overthinking this. Does macports provide static minizip-ng builds, by any chance? |
|
@JGoldstone thanks for the PR, like @zachlewis I'm not really happy updating |
There was what looked to be an incomplete handoff between
Findminizip-ng.cmakeand the libraryCMakeLists.txtfile, where there was mechanism to handle the case where a third-party installer had installedminizip-ngin such a way that neither headers nor library has a-ngsuffix (and indeed, if you pull down the baseminizip-ngfrom GitHub, it installs its products without suffixes).Anyway, there was provision in the latter file to handle this case if a certain communication variable was set, but the
Findminizip-ng.cmakemodule wasn't setting that module.I'd very much welcome criticism from those who understand both
cmakein general and the OCIO build system in particular as to whether this is a good way to handle the situation (which ... sometimes I wonder if I'm the only MacPorts user on the planet who uses ASWF tools), or whether some other approach would be more tasteful.