the if condition was never true so 'elif' was never executed by cmake or an error would have been raised