Fix for cmake warnings