Skip to content

Still getting long pathname issues under Windows with today's master version. #2266

@grebdioZ

Description

@grebdioZ

We were running into the "long pathname issue" on Windows #1900 with version 1.11.0 and hoped to overcome it with the fixes from #2225. If I understand correctly, those fixes should be available in the master branch, of which I built today's version. However, I still get the Filename longer than 260 characters error.

Configuring seems to work:

PS C:\temp\test> cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -S C:\dev\cmake\fme\FMEwork\Internal\Projects\MLTestExceedinglyLongProjectPath\TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath\TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath\ -B bld --fresh
-- The CXX compiler identification is MSVC 19.34.31942.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_INSTALL_PREFIX initialized to default setting 'C:/Temp/test/bld/install'

[... internal stuff that did not contain relevant warnings or errors]

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Temp/test/bld

But then:

PS C:\temp\test> ninja -C bld
ninja: error: rebuilding 'build.ninja': Stat(C:/dev/cmake/fme/FMEwork/Internal/Projects/MLTestExceedinglyLongProjectPath/TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath/TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath/CMakeLists.txt): Filename longer than 260 characters
ninja: Entering directory `bld'
PS C:\temp\test> ninja --version
1.12.0.git

I double-checked I have the LongPathsEnabled registry key set to 1.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions