CMP0080.rst 977 B

1234567891011121314151617181920212223242526
  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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.13
  17. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  18. .. include:: STANDARD_ADVICE.txt
  19. .. include:: DEPRECATED.txt