How to skip dependency on all for package target?

2019-07-30 16:25发布

问题:

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



标签: cmake cpack