Use new cmake API