MantisBT - CMake
View Issue Details
0014262CMakeCMakepublic2013-07-02 10:212013-12-02 08:51
Pete Turner 
 
normalmajoralways
closedno change required 
64bitWindows7 64bit
CMake 2.8.11.1 
 
0014262: "source code directory path length is too long" error. max is 50.
with a path to the source code set to ...
    
c:/productsTFS/Shared Components/.NET/ITK/InsightToolkit-4.3.1/InsightToolkit-4.3.1/

running CMake and selecting Configure, the error message in the summary is generated.
place ITK (or any other source) in a path that exceeds the 50 character length.
run CMake
select the path to the CMakeLists.txt file
select the path to the Build directory
select Configure

(error message is generated).
replacing the end of the directory path ("InsightToolkit-4.3.1/InsightToolkit-4.3.1") with "ITK4.3.1" reduces the number of characters in the path to source and the Configure is then allowed to succeed.
No tags attached.
Issue History
2013-07-02 10:21Pete TurnerNew Issue
2013-07-02 10:28Brad KingNote Added: 0033447
2013-07-02 10:28Brad KingStatusnew => resolved
2013-07-02 10:28Brad KingResolutionopen => no change required
2013-12-02 08:51Robert MaynardNote Added: 0034628
2013-12-02 08:51Robert MaynardStatusresolved => closed

Notes
(0033447)
Brad King   
2013-07-02 10:28   
The error message comes from CMakeLists.txt code in ITK, not from CMake.

Furthermore, the limit comes from path lengths used within ITK's source and build trees that exceed the Windows maximum path length limit (VS hits these internally during the build). You simply can't build ITK in a longer path.

Either way, this is not a CMake issue so I'm resolving it as "no change required".
(0034628)
Robert Maynard   
2013-12-02 08:51   
Closing resolved issues that have not been updated in more than 4 months.