CMP0088.rst 1.3 KB

12345678910111213141516171819202122232425262728293031
  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`` macro which generates BISON output.
  7. In CMake 3.13 and below the macro would generate a custom command 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. This policy was introduced in CMake version 3.14. Use the
  21. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  22. Unlike most policies, CMake version |release| does *not* warn
  23. when this policy is not set and simply uses ``OLD`` behavior.
  24. .. include:: DEPRECATED.txt