New warnings from master CMake

cmake

(Dženan Zukić) #1

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.


(Bradley Lowekamp) #2

For the google test the current intention is that those targets don’t get installed:

So investigation into the itk_module_target is needed, to determine if it implement NO_INSTALL in a way CMAKE may now expect.