Add new CMake option to hide deprecated info (gcc)