I use CMake to build HDF5 on Windows. The library can be built quite
straightforwardly, albeit it does take some time.
Now suppose I want to build filter plugins. In principle, only HDF5
headers are needed for that, incl. H5pubconf.h. What is the best/fastest
way to generate H5pubconf.h, using CMake? “cmake --build” works of
course, but it’s painfully slow.
Also, what are the minimal commands/dependencies I should add to
CMakeLists.txt, in case I elect to create one for my filter?
H5pubconf.h is built dynamically when the HDF5 library is configured and built. H5pubconf.h is specific to the type of platform you are executing your application.
So to build the plugins you need an installation of the HDF5 library, either by building or installing a binary.
Actually, for H5pubconf.h you only need to configure.
cmake -C /config/cmake/cacheinit.cmake
Thank you for the insight! It appeared that my cmake call was only a
hair from success: the command
cmake -G “Visual Studio 15” -C
worked, and created the precious H5pubconf.h.
But I suspect it still does a lot of extraneous work. What is the cmake
line to configure for just the C library build, without