CMP0147.rst 949 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. To control this behavior in a more
  11. precise way, refer to :prop_sf:`VS_CUSTOM_COMMAND_DISABLE_PARALLEL_BUILD`.
  12. The ``OLD`` behavior for this policy is to not add ``BuildInParallel``.
  13. The ``NEW`` behavior for this policy is to add ``BuildInParallel`` for
  14. VS 15.8 and newer.
  15. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.27
  16. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  17. .. include:: STANDARD_ADVICE.txt
  18. .. include:: DEPRECATED.txt