Project

General

Profile

Bug #663043

CMake + Ninja: warning about Policy CMP0058

Added by Felix Höfling 2 months ago. Updated 18 days ago.

Status:
In Progress
Priority:
Low
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

90%


Description

CMake 3.7 in conjunction with Ninja 1.4 emits the following warning:

CMake Warning (dev):
  Policy CMP0058 is not set: Ninja requires custom command byproducts to be
  explicit.  Run "cmake --help-policy CMP0058" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  This project specifies custom command DEPENDS on files in the build tree
  that are not specified as the OUTPUT or BYPRODUCTS of any
  add_custom_command or add_custom_target:

   halmd/algorithm/gpu/CMakeFiles/halmd_algorithm_gpu.dir/halmd_algorithm_gpu_generated_iota_kernel.cu.o.Release.cmake
   halmd/algorithm/gpu/CMakeFiles/halmd_algorithm_gpu.dir/halmd_algorithm_gpu_generated_radix_sort_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/CMakeFiles/halmd_mdsim_gpu.dir/halmd_mdsim_gpu_generated_binning_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/CMakeFiles/halmd_mdsim_gpu.dir/halmd_mdsim_gpu_generated_max_displacement_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/CMakeFiles/halmd_mdsim_gpu.dir/halmd_mdsim_gpu_generated_particle_group_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/CMakeFiles/halmd_mdsim_gpu.dir/halmd_mdsim_gpu_generated_particle_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/CMakeFiles/halmd_mdsim_gpu.dir/halmd_mdsim_gpu_generated_velocity_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/integrators/CMakeFiles/halmd_mdsim_gpu_integrators.dir/halmd_mdsim_gpu_integrators_generated_euler_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/integrators/CMakeFiles/halmd_mdsim_gpu_integrators.dir/halmd_mdsim_gpu_integrators_generated_verlet_kernel.cu.o.Release.cmake
   halmd/mdsim/gpu/integrators/CMakeFiles/halmd_mdsim_gpu_integrators.dir/halmd_mdsim_gpu_integrators_generated_verlet_nvt_andersen_kernel.cu.o.Release.cmake

  For compatibility with versions of CMake that did not have the BYPRODUCTS
  option, CMake is generating phony rules for such files to convince 'ninja'
  to build.

  Project authors should add the missing BYPRODUCTS or OUTPUT options to the
  custom commands that produce these files.
This warning is for project developers.  Use -Wno-dev to suppress it.

History

#1 Updated by Daniel Kirchner 18 days ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90

Should be resolved in commit:1c6565bb00c6173d9b843509f5e1e7da9aafc0c1
Further testing should verify whether the solution works without issues.

Also available in: Atom PDF