HDF5_LIB_INFIX doesn't work with DLL #4440
Labels
Component - Build
CMake, Autotools
Priority - 2. Medium ⏹
It would be nice to have this in the next release
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
Describe the bug
I want to be able to change name of generated dll files. I saw that there is HDF5_LIB_INFIX. But it seems that it doesn't work properly with dynamic libraries. Name of cmake target is changed so the name of preprocessor definition that is injected automatically by CMake is also changed. But hdf5 code still expects old names. Example:
I've used HDF5_LIB_INFIX=_1.14.3.
CMake changed name of project to
hdf5_1.14.3-shared
and injectedhdf5_1_14_3_shared_EXPORTS
hdf5/src/H5api_adpt.h
Line 23 in 0ce1a96
This leads to lots of errors
Expected behavior
There are no errors, dll has different name.
Platform (please complete the following information)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: