Generator fix for cmake