summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CommandLine/build-bad-dir-result.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-11 15:01:12 -0400
committerBrad King <brad.king@kitware.com>2015-06-11 16:04:21 -0400
commit90ad087ab9075cc9648df0623502da0caa44e971 (patch)
tree12a4d2ac794e386bc4480b01d53dcb5d1953be22 /Tests/RunCMake/CommandLine/build-bad-dir-result.txt
parent7195ec92b2f34ef16ff1382fb00f527a3609f3bf (diff)
downloadcmake-90ad087ab9075cc9648df0623502da0caa44e971.tar.gz
cmake: Fix --build <relative-dir> for VS generators (#15609)
The VS >= 10 generators need to parse the .sln file from the build directory to locate targets in subdirectories. This occurs after we change the working directory to the build tree. If a relative directory other than "." was given then we would change to it and also refer to the .sln file location with it. Fix this by converting the build tree to a full path always. This will also give a more informative error message when the directory does not exist.
Diffstat (limited to 'Tests/RunCMake/CommandLine/build-bad-dir-result.txt')
-rw-r--r--Tests/RunCMake/CommandLine/build-bad-dir-result.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/build-bad-dir-result.txt b/Tests/RunCMake/CommandLine/build-bad-dir-result.txt
new file mode 100644
index 0000000000..d00491fd7e
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/build-bad-dir-result.txt
@@ -0,0 +1 @@
+1