Skip to content

moc warning: quickfuture.h:0: Note: No relevant classes found. No output generated. #9

@twang-swt

Description

@twang-swt

Problem

when moc processes src/quickfuture.h, it outputs a warning

quickfuture.h:0: Note: No relevant classes found. No output generated.

Steps

Use the library by including this repo as a subdirectory then

include(quickfuture/quickfuture.pri)

Reason

The Qt stuff in this file is guarded by #ifdef QUICK_FUTURE_BUILD_PLUGIN

Solution

Remove src/quickfuture.h from HEADERS list in src/src.pri. This change only affects using the library by

include(quickfuture/quickfuture.pri)

This does not affect building the project as a plugin, because src/quickfuture.h is still listed in HEADERS in the plugin's .pro file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions