Re: [hatari-devel] Minor CMake cleanup -> warnings with make 3.31

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 01/11/2024 à 11:24, Andreas Grabher a écrit :
I have another minor patch here. It removes some code that seems to be unused.

Regards
Andreas


Hi

with a recent cmake 3.31, I get a lot of these warnings :

CMake Warning (dev) at cmake/DistClean.cmake:15 (add_custom_command):
  The following keywords are not supported when using
  add_custom_command(TARGET): DEPENDS.

Policy CMP0175 is not set: add_custom_command() rejects invalid arguments. Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:24 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.



"CMP0175" :
"...
* The ``TARGET`` form does not accept ``DEPENDS``, ``DEPENDS_EXPLICIT_ONLY``,
  ``DEPFILE``, ``IMPLICIT_DEPENDS``, ``MAIN_DEPENDENCY``, ``JOB_POOL``,
  ``JOB_SERVER_AWARE``, or ``USES_TERMINAL`` keywords.
...."

Maybe someone already encountered this warning and feels like fixing our CMakeLists.txt ?

Nicolas





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/