remove a cmake warning in new cmake versions