[cmake-developers] kwsys SystemTools::RelativePath()
Nils Gladitz
nilsgladitz at gmail.com
Sat Oct 4 02:32:48 EDT 2014
On 04.10.2014 02:25, David Cole wrote:
> Is the result of RelativePath guaranteed to be a directory name, or is
> it possibly a file name....?
If the second operand is a path to a file the result is a path to a file.
If the second operand is a path to a directory the result is a path to a
directory.
The first operand can only be a path to a directory.
A path can not at the same time refer to a file and a directory.
So when both operands are the same path this gives that they, as well as
the result, can only be directory paths.
Nils
More information about the cmake-developers
mailing list