Windows 10 long path support not taken into account
- Cmake 3.15.2
- ninja 1.8.2
I activated windows 10 long path support following both methods from here but cmake still refuses to build because too long path. I know I must shorten the build directory but is there an other way to fix this issue ? And shouldn't cmake be able to make use of the windows long path support ?
CMake Warning in CMakeLists.txt: The object file directory C:/Program Files (x86)/Jenkins/workspace/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/build_Debug_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/CMakeFiles/outHexFile_Debug_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.elf.dir/ has 182 characters. The maximum full path to an object file is 250 characters (see CMAKE_OBJECT_PATH_MAX). Object file xxxxxx/sources/02_service/xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.c.obj cannot be safely placed under this directory. The build may not work correctly. -- Generating done -- Build files have been written to: C:/Program Files (x86)/Jenkins/workspace/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/build_Debug_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx