Using the master branch of CMake, and VS2019 Preview2 as the generator, these warnings appear:
...
Filter ZLIB is ON
CMake Warning (dev) at Modules/ThirdParty/HDF5/src/itkhdf5/CMakeLists.txt:733 (set):
implicitly converting 'INTEGER' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring done
WARNING: Target "gtest" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it. CMake does not define behavior for this case.
WARNING: Target "gtest_main" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it. CMake does not define behavior for this case.
Generating done
@blowekamp what should be done about GTest EXCLUDE_FROM_ALL
issue?
As these warnings are coming from a not-yet-released CMake, there is no urgency to address them.
Hopefully, HDF5 people will fix the warning coming from there once the new logic makes its way into a CMake release.