Skip to content

cmake: Fix loading CMake sources from long paths on Windows

majaeger requested to merge majaeger/cmake:user/majaeger/windows_longpath into master

The path passed to cmListFileParser::ParseFile() is not in windows extended path format, which results in failure to open cmake files with paths greater than MAX_PATH in the file lexer. This change calls cmSystemTools::ConvertToWindowsExtendedPath(filename) in cmListFileParser::ParseFile() to ensure the path is in the correct format.

Topic-rename: windows-long-path

Edited by Brad King

Merge request reports