如何跳过对软件包目标的全部依赖? [英] How to skip dependency on all for package target?

查看:114
本文介绍了如何跳过对软件包目标的全部依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,只有几个单独的构建目标,这些目标是排他的-但它们是从相同的资源构建的,只是以其他配置,目标等构建。
我需要安装和打包目标要独立于 all 目标,这是默认设置。对于安装目标,有一个 CMAKE_SKIP_INSTALL_ALL_DEPENDENCY 变量,它可以很好地工作并满足我的需要。
如何也关闭对CPack输出的 all 依赖性?

I have a project with few separate build targets, which are exclusive - but they're built from the same sources, just in other configurations, targets etc. I need the install and package targets to be independent from all target, which is a default. For the install target there's a CMAKE_SKIP_INSTALL_ALL_DEPENDENCY variable, which works very well and do what I need. How to turn the dependency from all for CPack's output off, too?

推荐答案

您或多或少地自己回答了这个问题: CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY 可用

You answered the question more or less yourself: CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY is available

这篇关于如何跳过对软件包目标的全部依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆