My guess is that the Java language support for add_library just doesn’t work there. Though why CMake doesn’t complain and instead just silently ignores the call instead is odd. @brad.king Thoughts?
Are you manually setting flags related to this? I’ve not seen this. I see pugixml suppressing the warning, but that’s about it.