SKIP_UNITY_BUILD_INCLUSION.rst 532 B

12345678910111213
  1. SKIP_UNITY_BUILD_INCLUSION
  2. --------------------------
  3. .. versionadded:: 3.16
  4. Setting this property to true ensures the source file will be skipped by
  5. unity builds when its associated target has its :prop_tgt:`UNITY_BUILD`
  6. property set to true. The source file will instead be compiled on its own
  7. in the same way as it would with unity builds disabled.
  8. This property helps with "ODR (One definition rule)" problems where combining
  9. a particular source file with others might lead to build errors or other
  10. unintended side effects.