[CMake] Windows path too long
Robert Bielik
Robert.Bielik at dirac.com
Wed Sep 7 02:55:15 EDT 2016
I have a problem with a VS 2015 project, where the build state path becomes too long:
Severity Code Description Project File Line Suppression State
Error MSB3491 Could not write lines to file "processor_withAVeryVeryLongName.dir\Release\processo.92BD73FC.tlog\processor_withAVeryVeryLongName.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. processor_withAVeryVeryLongName C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 312
The line in Microsoft.CppBuild.targets is:
<WriteLinesToFile Overwrite="true" File="$(LastBuildState)" Lines="$(ProjectStateLine);$(ProjectEvaluationFingerprint)"/>
I've set CMAKE_OBJECT_PATH_MAX to 240, but I don't think it will affect this...
Ideas ?
This is with CMake 3.5.2.
Regards
/Robert
More information about the CMake
mailing list