Skip to content

-Werror in GTSAM forces errors in downstream projects #2401

Description

@varunagrawal

#1959 introduced -Werror in the GTSAM_COMPILE_OPTIONS_PRIVATE_COMMON variable in GtsamBuildTypes.cmake. This forces the compiler to treat all warnings as errors.

Unfortunately, this also propagates this behavior to downstream projects. This is not ideal since many (smaller) organizations choose to ignore warnings in favor of fast iteration, and this flag causes them to have to fight the compiler.

The simplest fix for this would be to remove GTSAM_COMPILE_OPTIONS_PRIVATE_COMMON as a CACHE variable. This would involve investigating other similar variables as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions