I would be curious as to what you are needing the variable for? I was the original author of that bit of code back when HDF5 did not ship with a reasonable way of figuring out if the HDF5 installation had been built as shared or static. With modern cmake versions and recent HDF5 versions (1.8.15 and forward) the HDF5 installation has the proper HDF5Config.cmake files that "find_packaage()" should be using. This assumes you append your CMAKE_MODULE_PATH with the path to that config file.

--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: [email protected]


Isaac Gerg wrote:
Is it possible for someone to add the instruction to add
H5_BUILT_AS_DYNAMIC_LIB to the preprocessor defs on the cmake build page
here https://support.hdfgroup.org/HDF5/release/cmakebuild.html.

I spent about 3 hours trying to track down this issue and think a small
note would be helpful to others.

Thank you,
Isaac

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to