Skip to content

Creating qt5cpp library from swagger has missing include #4833

@fortiumant

Description

@fortiumant
Description

While creating a static library from the generated files, compilation issues arose due to QDateTime only being forward declared. Adding the include resolves the issue.

The file affected is SWGHelpers.cpp. So editing the mustache file and tested locally worked correctly.

Sample CMake lists

I used generated code from existing examples. Using the cmake file below, just create a folder called client and place the generated code in there to reproduce.

CMakeLists.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions