Skip to content

CMake 3.20 Compatibility, master branch (2021.05.03.)

The code now explicitly chooses the CMP0116 policy for CMake >=3.20. This avoids the following kind of warning from the dictionary generator code when using Ninja as the build system generator.

CMake Warning (dev) at /data/hdd-4tb/projects/externals/atlasexternals/Build/AtlasCMake/modules/AtlasDictionaryFunctions.cmake:755 (add_custom_command):
  Policy CMP0116 is not set: Ninja generators transform DEPFILEs from
  add_custom_command().  Run "cmake --help-policy CMP0116" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /data/hdd-4tb/projects/externals/atlasexternals/Build/AtlasCMake/modules/AtlasDictionaryFunctions.cmake:286 (atlas_generate_reflex_dictionary)
  /data/hdd-4tb/projects/externals/athena/Event/xAOD/xAODCore/CMakeLists.txt:39 (atlas_add_dictionary)
This warning is for project developers.  Use -Wno-dev to suppress it.

Thanks to @tadej for spotting this!

This also "mildly" affects ATLINFR-4079...

Merge request reports