Fix incorrect cmake macro usage