[cmake-developers] kwsys SystemTools::RelativePath()

Brad King brad.king at kitware.com
Fri Oct 3 15:13:10 EDT 2014


On 09/30/2014 10:05 AM, Nils Gladitz wrote:
> When both operands are the same absolute path I get the empty string as 
> a result.
> 
> Should it be "."?

Perhaps.  One would need to track down existing call sites
to see where that might affect behavior.  IIRC it is exposed
through file(RELATIVE_PATH), so it may need a policy.  That
is probably overkill because there are legitimate use cases
where an empty string looks better than ".".

-Brad




More information about the cmake-developers mailing list