diff options
author | Brad King <brad.king@kitware.com> | 2020-10-15 19:07:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-27 18:36:16 (GMT) |
commit | 9e5e2d704abaef1b0a45201985f06a15290c1d09 (patch) | |
tree | 038d10afa652916ec0e96b5da9de657032d01d50 /Source/cmAddCustomCommandCommand.cxx | |
parent | 024de8d1371cc4f0cf4921c6e28553c8df423413 (diff) | |
download | CMake-9e5e2d704abaef1b0a45201985f06a15290c1d09.zip CMake-9e5e2d704abaef1b0a45201985f06a15290c1d09.tar.gz CMake-9e5e2d704abaef1b0a45201985f06a15290c1d09.tar.bz2 |
Remove unnecessary arbitrary CollapseFullPath second arguments
Some calls to CollapseFullPath that already have an absolute path were
updated by commit 22f38c0d6b (cmake: avoid getcwd in `CollapseFullPath`,
2020-01-14, v3.17.0-rc1~171^2) to pass an arbitrary second argument to
prevent unnecessary `getcwd` calls. Since then, the KWSys
implementation of CollapseFullPath has learned to avoid unnecessary
`getcwd` calls on its own, so we can drop the arbitrary second arguments
to our CollapseFullPath calls.
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r-- | Source/cmAddCustomCommandCommand.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx index bea89c0..a8f7509 100644 --- a/Source/cmAddCustomCommandCommand.cxx +++ b/Source/cmAddCustomCommandCommand.cxx @@ -215,8 +215,7 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args, } if (cmSystemTools::FileIsFullPath(filename)) { - filename = cmSystemTools::CollapseFullPath( - filename, status.GetMakefile().GetHomeOutputDirectory()); + filename = cmSystemTools::CollapseFullPath(filename); } switch (doing) { case doing_depfile: |