update cmake to ignore warnings