new cmake management (os x only)