CMAKE_VS_NO_COMPILE_BATCHING.rst 520 B

1234567891011121314151617181920
  1. CMAKE_VS_NO_COMPILE_BATCHING
  2. ----------------------------
  3. .. versionadded:: 3.24
  4. Turn off compile batching when using :ref:`Visual Studio Generators`.
  5. This variable is used to initialize the :prop_tgt:`VS_NO_COMPILE_BATCHING`
  6. property on all targets when they are created. See that target property for
  7. additional information.
  8. Example
  9. ^^^^^^^
  10. This shows setting the property for the target ``foo`` using the variable.
  11. .. code-block:: cmake
  12. set(CMAKE_VS_NO_COMPILE_BATCHING ON)
  13. add_library(foo SHARED foo.cpp)