fix for older versions of cmake