I'm trying to compile a c++ project which is configured with cmake. It continually fails to build because of a warning that is being treated as an error. I've compiled the project on other linux distros without an error but can't get it to build on Solus due to this.
I've tried running cmake with -DCMAKE_CXX_FLAGS="-Wno-error"
before building the project but it is still treating warnings as errors.
The specific warning is error: writing 8 bytes into a region of size 4 [-Werror=stringop-overflow=]
I also see in the terminal cc1plus: all warnings being treated as errors
.
Is there a way to disable this so that warnings aren't raised as errors?