CPACK_INCLUDE_TOPLEVEL_DIRECTORY.rst 844 B

1234567891011121314151617181920
  1. CPACK_INCLUDE_TOPLEVEL_DIRECTORY
  2. --------------------------------
  3. Boolean toggle to include/exclude top level directory.
  4. When preparing a package CPack installs the item under the so-called
  5. top level directory. The purpose of is to include (set to ``1`` or ``ON`` or
  6. ``TRUE``) the top level directory in the package or not (set to ``0`` or
  7. ``OFF`` or ``FALSE``).
  8. Each CPack generator has a built-in default value for this variable.
  9. E.g. Archive generators (ZIP, TGZ, ...) includes the top level
  10. whereas RPM or DEB don't. The user may override the default value by
  11. setting this variable.
  12. There is a similar variable
  13. :variable:`CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY` which may be used
  14. to override the behavior for the component packaging
  15. case which may have different default value for historical (now
  16. backward compatibility) reason.