Page MenuHomeFreeBSD

Fix astro/qmapshack build with CMake 3.11
ClosedPublic

Authored by adridg on Apr 2 2018, 2:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 8 2024, 2:19 AM
Unknown Object (File)
Oct 4 2024, 9:12 PM
Unknown Object (File)
Sep 10 2024, 1:06 PM
Unknown Object (File)
Sep 9 2024, 3:57 AM
Unknown Object (File)
Sep 9 2024, 12:01 AM
Unknown Object (File)
Sep 4 2024, 8:13 AM
Unknown Object (File)
Aug 18 2024, 8:45 PM
Unknown Object (File)
Aug 15 2024, 4:25 PM
Subscribers

Details

Summary

CMake 3.11 builds auto-moc'ed files in a slightly different order from
how CMake 3.10 did. This shows up when files don't have all their
pre-requisite includes #included in the new order.

Add the required include for a complete definition of IDrawContext, to
fix this compiler error:

src/qmapshack/qmapshack_autogen/G2GOEHWAFX/../../dem/CDemVRT.h:36:15: error: incomplete type 'IDrawContext' named in nested name specifier

void draw(IDrawContext::buffer_t& buf) override;
          ^~~~~~~~~~~~~~

src/qmapshack/canvas/CCanvas.h:31:7: note: forward declaration of 'IDrawContext'
class IDrawContext;

Test Plan

Builds on 11.1-amd64 with CMake 3.10 and CMake 3.11

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 15939
Build 15931: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 2 2018, 8:19 PM
This revision was automatically updated to reflect the committed changes.