#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.
#1959 introduced
-Werrorin theGTSAM_COMPILE_OPTIONS_PRIVATE_COMMONvariable inGtsamBuildTypes.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_COMMONas a CACHE variable. This would involve investigating other similar variables as well.