CMP0080.rst 1.0 KB

123456789101112131415161718192021222324252627
  1. CMP0080
  2. -------
  3. .. versionadded:: 3.13
  4. :module:`BundleUtilities` cannot be included at configure time.
  5. The macros provided by :module:`BundleUtilities` are intended to be invoked
  6. at install time rather than at configure time, because they depend on the
  7. listed targets already existing at the time they are invoked. If they are
  8. invoked at configure time, the targets haven't been built yet, and the
  9. commands will fail.
  10. This policy restricts the inclusion of :module:`BundleUtilities` to
  11. ``cmake -P`` style scripts and install rules. Specifically, it looks for the
  12. presence of :variable:`CMAKE_GENERATOR` and throws a fatal error if it exists.
  13. The ``OLD`` behavior of this policy is to allow :module:`BundleUtilities` to
  14. be included at configure time. The ``NEW`` behavior of this policy is to
  15. disallow such inclusion.
  16. This policy was introduced in CMake version 3.13. CMake version
  17. |release| warns when the policy is not set and uses ``OLD`` behavior.
  18. Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
  19. explicitly.
  20. .. include:: DEPRECATED.txt