CMP0088.rst 1.2 KB

123456789101112131415161718192021222324252627282930
  1. CMP0088
  2. -------
  3. .. versionadded:: 3.14
  4. :module:`FindBISON` runs bison in :variable:`CMAKE_CURRENT_BINARY_DIR`
  5. when executing.
  6. The module provides a ``bison_target()`` command which generates BISON output.
  7. In CMake 3.13 and below the command would generate a custom build rule that runs
  8. ``bison`` in the source directory. CMake 3.14 and later prefer to run it
  9. in the build directory and use :variable:`CMAKE_CURRENT_BINARY_DIR` as the
  10. ``WORKING_DIRECTORY`` of its :command:`add_custom_command` invocation.
  11. This ensures that any implicitly generated file is written to the build
  12. tree rather than the source.
  13. This policy provides compatibility for projects that have not been updated
  14. to expect the new behavior.
  15. The ``OLD`` behavior for this policy is for ``bison_target()`` to use
  16. the current source directory for the ``WORKING_DIRECTORY`` and where
  17. to generate implicit files. The ``NEW`` behavior of this policy is to
  18. use the current binary directory for the ``WORKING_DIRECTORY`` and where
  19. to generate implicit files.
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.14
  21. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  22. .. include:: include/STANDARD_ADVICE.rst
  23. .. include:: include/DEPRECATED.rst