[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.12 1.13

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Aug 21 09:54:38 EDT 2008


Update of /cvsroot/CMake/CMake/Tests/OutOfSource/OutOfSourceSubdir
In directory public:/mounts/ram/cvs-serv4063/Tests/OutOfSource/OutOfSourceSubdir

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Allow custom limit on object file path length

Some native build tools, particularly those for cross compiling, may
have a limit on the length of the full path to an object file name that
is lower than the platform otherwise supports.  This change allows the
limit to be set by the project toolchain file through the variable
CMAKE_OBJECT_PATH_MAX.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt,v
retrieving revision 1.12
retrieving revision 1.13
diff -C 2 -d -r1.12 -r1.13
*** CMakeLists.txt	16 Jul 2007 17:29:41 -0000	1.12
--- CMakeLists.txt	21 Aug 2008 13:54:36 -0000	1.13
***************
*** 11,16 ****
      ${OutOfSource_BINARY_DIR}/../OutOfSourceDeep/deeper ABSOLUTE)
  
!   # The maximum allowed path length on Windows is near this value.
!   SET(MAXPATH "250")
  
    # VS8 adds "OutOfSource/SubDir/OutOfSourceSubdir/../../../" to the
--- 11,19 ----
      ${OutOfSource_BINARY_DIR}/../OutOfSourceDeep/deeper ABSOLUTE)
  
!   # Test giving the generator a custom limit.
!   SET(CMAKE_OBJECT_PATH_MAX 220)
! 
!   # Use a separate variable for computation.
!   SET(MAXPATH "${CMAKE_OBJECT_PATH_MAX}")
  
    # VS8 adds "OutOfSource/SubDir/OutOfSourceSubdir/../../../" to the



More information about the Cmake-commits mailing list