Object Path length
With my Cmake project, There is a error during the generating :
Make Warning in CMakeLists.txt:
The object file directory
C:/Users/XXXXXXXXX/Documents/XXXXXXXXX/XXXXXXXXX/trunk/XXXXXXXXX/XXXXXXXXX/CMakeFiles/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.elf.dir/
has 172 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
C:/Users/XXXXXXXXX/Documents/XXXXXXXXX/XXXXXXXXX/trunk/XXXXXXXXX/XXXXXXXXX/CMakeFiles/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.c.obj
cannot be safely placed under this directory. The build may not work correctly.
Windows has a limit on the length of the path : 256 characters. Why Cmake limits the length to a smaller length?
A solution is to move folder to C:, but this solution has a limit. Cmake is nos able to handle a path > 256 char?
Tks