CMAKE_OBJECT_PATH_MAX and path length issues
Posted: Thu Jan 26, 2023 12:45 pm
I can't find any resource on path length limits for cmake with esp-idf and VSCode.
I should be able to use long paths with cmake on windows by setting registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled to 1, which I have and rebooted my machine.
However when I build I still get an error with explanation "The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX)."
I can find no CMAKE_OBJECT_PATH_MAX setting, if I add it to my CMakeLists.txt and set it to say 260 it is ignored and the same error persists.
How can ESP-IDF be made to work with long file paths on Windows?
Thanks
Adam
I should be able to use long paths with cmake on windows by setting registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled to 1, which I have and rebooted my machine.
However when I build I still get an error with explanation "The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX)."
I can find no CMAKE_OBJECT_PATH_MAX setting, if I add it to my CMakeLists.txt and set it to say 260 it is ignored and the same error persists.
How can ESP-IDF be made to work with long file paths on Windows?
Thanks
Adam