If we just do not want to see the warnings, then we can do some compilation test in cmake.