CMP0147.rst 963 B

123456789101112131415161718192021222324
  1. CMP0147
  2. -------
  3. .. versionadded:: 3.27
  4. :ref:`Visual Studio Generators` build custom commands in parallel.
  5. Visual Studio 15.8 (2017) and newer support building custom commands in
  6. parallel. CMake 3.27 and above prefer to enable this behavior by adding
  7. a ``BuildInParallel`` setting to custom commands in ``.vcxproj`` files.
  8. This policy provides compatibility for projects that have not been updated
  9. to expect this, e.g., because their custom commands were accidentally
  10. relying on serial execution by MSBuild.
  11. The ``OLD`` behavior for this policy is to not add ``BuildInParallel``.
  12. The ``NEW`` behavior for this policy is to add ``BuildInParallel`` for
  13. VS 15.8 and newer.
  14. This policy was introduced in CMake version 3.27. Use the
  15. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  16. Unlike many policies, CMake version |release| does *not* warn
  17. when this policy is not set and simply uses ``OLD`` behavior.
  18. .. include:: DEPRECATED.txt