fix warning with new cmake version