add warning flag for cmake
fix