Skip to content

CMake: mark reflectcpp PUBLIC include directories as SYSTEM to avoid leaking third-party warnings #111

Done

Description

@clockblocker

Bug

reflectcpp's CMake target exports PUBLIC include directories without the SYSTEM keyword, causing vendored/third-party headers (yyjson.h, enchantum) to leak compiler warnings into downstream consumers compiled with strict warning flags.

Evidence

  • Surfaced in osmium-tool (exp/gp-osmium-tool) and solidity (exp/gp-solidity) Showcase Migrations under strict warning flags (Lane 1):
    • 406 -Wold-style-cast warnings from yyjson.h
    • -Wnewline-eof warnings from enchantum

Acceptance Criteria

  • Mark third-party / consumer-facing PUBLIC include directories on the reflectcpp CMake target with SYSTEM (preserving non-SYSTEM warnings for reflect-cpp's own development/tests if desired).
  • Verify downstream builds with -Wold-style-cast -Wnewline-eof -Werror compile cleanly without suppressing warnings globally.

Activity

  1. added
    bug
    ready-for-agent
    on Nov 27, 2026
  2. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Duplicate of CMake: export reflectcpp and pugixml include directories as SYSTEM (broader scope covering both reflectcpp and transitive pugixml::pugixml includes; osmium-tool/solidity warning evidence merged there).

  3. added
    duplicate
    and removed
    ready-for-agent
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugduplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions