1

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?

  • For now, the only way to overcome this is using _EXCLUDE_FROM_ALL_ for some of the targets, but the better solution would be to CPack understanding the _EXCLUDE_FROM_DEFAULT_BUILD_*_ flags. – Piotr Borys Apr 25 '17 at 11:46

1 Answers1

0

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

Florian
  • 39,996
  • 9
  • 133
  • 149