Static C HDF5 targets aren't static #5295
Unanswered
blawrence-ont
asked this question in
Casks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
When enabling
HDF5_USE_STATIC_LIBRARIES
incmake
,/opt/homebrew/opt/libaec/lib/libsz.2.dylib
is chosen instead of/opt/homebrew/opt/libaec/lib/libsz.a
despite asking for static libraries.Repro case:
CMakeLists.txt
:test.c
Execution:
Expected output:
Nothing, since we asked for
HDF5_USE_STATIC_LIBRARIES
.Actual output:
Notes:
The expected output has been the case since at least July 2023 and was working when Homebrew/homebrew-core#159691 (comment) was filed, though I don't know how to narrow down when the behaviour broke after that.
The issue seems to stem from
/opt/homebrew/Cellar/hdf5/1.14.3_1/lib/cmake/hdf5/hdf5-targets.cmake
which contains this line for thehdf5-static
target:Note that
libsz.dylib
appears twice (why?) and should belibsz.a
. I don't know when this file is generated, but if I extract the downloadedCaches/Homebrew/downloads/f5d182938da868e3080c9f4583e29787b35254f3487c8a3c998f1eb31ac25a58--hdf5--1.14.3_1.arm64_sonoma.bottle.tar.gz
I can see that it's in there along withMacOSX14.sdk
in the path tolibz
, but shouldn't that be dependent on the SDK installed?Relevant casks
HDF5
Beta Was this translation helpful? Give feedback.
All reactions