fix cmake according new spec