cmake: unify !MRN_BUNDLED related code to the same block