Please move this and DISABLE_INTERNAL_PROJECT into the PKG_CHECK_MODULES "yes" case.