In dealing with the same problem described in this question (only with different specific versions), I've added the following to my top-level CMakeLists.txt file:
add_definitions(-D__GXX_ABI_VERSION=1002)
...since 1002 is the version my build of wxWidgets wants. Okay, great; now the compiled program will run. But now when I do a make
, every single compiled file emits the following warning:
<command-line>: warning: "__GXX_ABI_VERSION" redefined
<built-in>: note: this is the location of the previous definition
So yeah, I know I [re]defined __GXX_ABI_VERSION
on the command-line, and I guess I knew that it was previously defined in some "built-in" fashion, but I did it on purpose. Is there something I can add to my CMakeLists.txt file to get that specific warning suppressed? I don't want to suppress any other redefinition warnings; just that specific one. I've taken to redirecting make
's stderr
to a file and grep
ing it for "error:" in order to pick actual compilation errors out of the haystack of warnings, and that's a pain...