[Midnightbsd-cvs] [MidnightBSD/mports] 8812a3: cad/graywolf: fix CMakeLists.txt add_definitions m...

Lucas Holt noreply at github.com
Wed Apr 29 19:32:21 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 8812a375154ae7e98cb4f61447384f4dc18dbee3
      https://github.com/MidnightBSD/mports/commit/8812a375154ae7e98cb4f61447384f4dc18dbee3
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    A cad/graywolf/files/patch-CMakeLists.txt

  Log Message:
  -----------
  cad/graywolf: fix CMakeLists.txt add_definitions misuse

A prior upstream patch changed SET(CMAKE_C_FLAGS ...) to
add_definitions() but passed multiple flags as a single string.
cmake's add_definitions() treats the whole string as one token,
causing SIZEOF_VOID_P to be defined as "64 -Wno-implicit-function-declaration"
instead of just 64, and leaving the -Wno-implicit-function-declaration
suppression flag unapplied (causing build failure with GCC 14 which
treats implicit function declarations as errors by default).

Fix by using add_compile_definitions() for the macro and a separate
add_compile_options() call for the warning flag.

AI-Assisted-by: Claude Sonnet 4.6 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications


More information about the Midnightbsd-cvs mailing list