Open MicK7 opened 3 weeks ago
That hd5.pc
file seems to be buggy. Including -ldebug -loptimized
is certainly wrong. Then, Libs.private
still includes a mix of library names with and without .lib
appended, because of -lshlwapi
. If after removing -ldebug
and -loptimized
things don't work, can you try changing -lshlwapi
to -lshlwapi.lib
?
Describe the bug
When I add
hdf5
as a dependency to a C piece of code on windows, ie `I end up with a link failure of msvc
The
hdf5.pc
used by meson was generated by a cmake build and contains:The Libs.private seems to be a part added to the linking and modified by meson by appending a '.lib'
To Reproduce
Create a simple C program that do nothing but contains
The meson.build should contains
Expected behavior
Linking to hdf5 on windows should work and meson should not append ".lib" when it is already present at end of file.
system parameters
meson --version
1.6.0ninja --version
1.12.1