BUG: use the new cmake macro