[CMake] Using Relative Paths!
Brad King
brad.king at kitware.com
Sun Feb 19 16:25:55 EST 2006
Jan Palach wrote:
> How use relative paths on cmake?
Short answer: you can't.
Long answer: Several attempts have been made to implement generation of
build systems with relative paths instead of full paths. It is
extremely tricky when people use symlinks in the path to their source or
build directories and does not work at all with network paths on windows
(because the current working directory cannot be a network path in the
windows shell used by the build system).
CMake is meant to take CMakeLists.txt files distributed in the source of
a project and generate a native build system on each user's machine.
The generated build system is not meant to be distributed. In this use
case there is no need for relative paths.
-Brad
More information about the CMake
mailing list