CMAKE_OBJECT_PATH_MAX.rst 826 B

12345678910111213141516
  1. CMAKE_OBJECT_PATH_MAX
  2. ---------------------
  3. Maximum object file full-path length allowed by native build tools.
  4. CMake computes for every source file an object file name that is
  5. unique to the source file and deterministic with respect to the full
  6. path to the source file. This allows multiple source files in a
  7. target to share the same name if they lie in different directories
  8. without rebuilding when one is added or removed. However, it can
  9. produce long full paths in a few cases, so CMake shortens the path
  10. using a hashing scheme when the full path to an object file exceeds a
  11. limit. CMake has a built-in limit for each platform that is
  12. sufficient for common tools, but some native tools may have a lower
  13. limit. This variable may be set to specify the limit explicitly. The
  14. value must be an integer no less than 128.