summaryrefslogtreecommitdiffstats
path: root/Source/cmExprParserHelper.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-12 15:47:49 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-12 15:52:52 (GMT)
commit1df49282a5649c9ad9f8769cb552423ad74adbfb (patch)
tree549c4b0663b3e0c0600f7a8d54bd6dd373e3e457 /Source/cmExprParserHelper.cxx
parent51fc4fb3c1bd22f038b1d6b51e039296bbc258c3 (diff)
downloadCMake-1df49282a5649c9ad9f8769cb552423ad74adbfb.zip
CMake-1df49282a5649c9ad9f8769cb552423ad74adbfb.tar.gz
CMake-1df49282a5649c9ad9f8769cb552423ad74adbfb.tar.bz2
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>
Diffstat (limited to 'Source/cmExprParserHelper.cxx')
0 files changed, 0 insertions, 0 deletions