Andrey, BUILD_SHARED_LIBS determines how the library will be built, OFF is static and ON is dynamic. If you want to build a static hdf5 library, I suggest you link zlib in statically as well. Note that the CRT will still be referenced dynamically. (there is a way to link that in statically if you must, but is not usually necessary).
Allen On Thursday, May 29, 2014 07:03:25 PM Андрей Парамонов wrote: > Hello! > > I'm trying to do a custom build of HDF5 library with cmake. More > precisely, I want to build hdf5.dll with zlib support, with zlib (and > msvc*) code linked info hdf5.dll statically. > > From reading INSTALL_CMake.txt, I do not quite understand to which of > the following aspects BUILD_SHARED_LIBS relates to: > > 1) Build hdf5.dll or hdf5.lib. > 2) Link zlib code info hdf5 statically or dynamically. > > Sorry if my question is stupid, I didn't have a chance to get experience > with cmake so far ;-) > > Best wishes, > Andrey Paramonov _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
