fix cmake warning with cmake >= 2.8.11