summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/E_env-no-command1-stderr.txt
diff options
context:
space:
mode:
authorPeter Waller <p@pwaller.net>2019-10-11 19:48:49 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-14 20:17:00 (GMT)
commitc9d73b26b0a78fac774a549de41eee55ed4e8d7b (patch)
treed7fbd0a006240f40c825f07ef5e321272cb5c6ae /Tests/RunCMake/CommandLine/E_env-no-command1-stderr.txt
parent9150c818b7d2afb868575fcb2e0c9ba62b9d7f85 (diff)
downloadCMake-c9d73b26b0a78fac774a549de41eee55ed4e8d7b.zip
CMake-c9d73b26b0a78fac774a549de41eee55ed4e8d7b.tar.gz
CMake-c9d73b26b0a78fac774a549de41eee55ed4e8d7b.tar.bz2
cmake: Fix relative path regression in -C
Since commit 4ca0526f8a (cmake: Pass -S and -B into PreLoad.cmake and -C scripts, 2019-08-20, v3.16.0-rc1~195^2) the value of `CMAKE_SOURCE_DIR` is the source directory rather than the current working directory. This was correct on its own, but the place storing that value is also used as the base for relative paths specified on the command line. The latter should of course be relative to the current working directory. The fix is to switch to use a full path internally, unless a full path is already specified. Add tests for the behaviour of `-C` under these four circumstances: {with -S, without -S} x {full path, relative path} Fixes: #19827
Diffstat (limited to 'Tests/RunCMake/CommandLine/E_env-no-command1-stderr.txt')
0 files changed, 0 insertions, 0 deletions