implement correct cmake version check