migrating to new api with cmake compilation only ca1 does not work...