Hi fellow developers, I've got an issue with Cmake 2.8.12.2. The Visual Studio Generators do not abide by the "CMAKE_USE_RELATIVE_PATHS" setting.
This means that cmake always attempts to generate relative paths when inserting filenames into projects, and means that the infamous 260 character max path limit is hit on relatively short filenames/hierarchies. I've cloned CMAKE locally, and looked into why this happens. It appears that the issue is inside the following function: cmVisualStudio10TargetGenerator::ConvertPath It calls LocalGenerator->Convert using the default parameter for 'optional' (which is false). This means that these calls will always end up converting the path to relative. I have resolved the issue and verified it by supplying a simple "true" instead. This means that the internals of LocalGenerator->Convert will end up checking "CMAKE_USE_RELATIVE_PATHS" and behave appropriately. Is it possible to get this into a new version of 2.8.12? Thanks for your time Josh -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
