问题
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?
回答1:
You answered the question more or less yourself: CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY
is available
来源:https://stackoverflow.com/questions/43609677/how-to-skip-dependency-on-all-for-package-target