Skip to content

Use of invalid OUTPUTS named parameter in add_custom_command #188

@eyalroz

Description

@eyalroz

In blitz/CMakeLists.txt it says:

     add_custom_command(
        COMMAND $<TARGET_FILE:${prog}>
         TARGET  ${header}
         WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/blitz/generate
        OUTPUTS ${header}
     )

but there is no OUTPUTS. There is the OUTPUT named parameter, but you actually don't need that when we have TARGET. So the OUTPUTS should just be dropped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions