Brad King 1df49282a5 add_subdirectory: Compute output dir with consistent slashes (#10072)
When the command is invoked without an explicit build directory path we
compute it from the source directory path.  When either the source or
build tree is the root of a Windows drive letter it will have a trailing
slash.  Handle slashes consistently when substituting the current output
directory for the current source directory.

While at it, use cmSystemTools::IsSubDirectory instead of FindLastString
to verify that the source directory is a subdirectory.

Inspired-by: Graham Menhennitt <graham@menhennitt.com.au>
2013-03-12 11:52:52 -04:00
..
2013-03-12 00:01:18 -04:00
2011-09-15 16:20:33 +02:00
2013-01-07 21:20:11 +01:00
2011-10-23 22:18:08 +02:00
2010-09-10 14:42:09 -04:00
2012-09-28 17:00:52 -04:00
2012-09-28 17:00:52 -04:00
2011-10-23 22:18:08 +02:00
2012-02-02 23:40:21 +00:00
2012-07-18 12:17:39 +02:00
2012-02-21 15:33:31 -05:00
2013-02-08 13:38:56 -05:00