Re: [hatari-devel] Minor CMake cleanup -> warnings with make 3.31 |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
> Am 09.11.2024 um 14:35 schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>: > > 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 > This is not yet a proper fix. But can you check if it removes all warnings? If not, please provide the full output with all warnings.
Attachment:
hatari.diff
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |