[cmake-developers] Bug in Visual Studio generators

Brad King brad.king at kitware.com
Tue Apr 8 13:32:39 EDT 2014


On 04/08/2014 04:58 AM, Josh Green wrote:
> 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 option is not fully implemented or supported.  The documentation
says that it does not fully work:

 http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_USE_RELATIVE_PATHS.html

CMake is not intended to generate re-locatable or re-distributable
build files.  If you *really* need them then you can use
-DCMAKE_SUPPRESS_REGENERATION=1 and post-process the generated
files to fix paths.

-Brad



More information about the cmake-developers mailing list