diff options
author | Brad King <brad.king@kitware.com> | 2009-02-06 13:33:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-06 13:33:52 (GMT) |
commit | 16fe328dfc65f47e0a4fd1f7f1ac8e2fa3663b51 (patch) | |
tree | 71d385a536394b58dc42b7e4162baf3078907097 /Source/cmGetFilenameComponentCommand.cxx | |
parent | 0499ca66aab617409458cc2add56c10c15904e94 (diff) | |
download | CMake-16fe328dfc65f47e0a4fd1f7f1ac8e2fa3663b51.zip CMake-16fe328dfc65f47e0a4fd1f7f1ac8e2fa3663b51.tar.gz CMake-16fe328dfc65f47e0a4fd1f7f1ac8e2fa3663b51.tar.bz2 |
BUG: Alternative fix to bug #8423
The patch used to fix this bug used SystemTools::GetRealPath which works
only for existing files. It broke the case of using the command
get_filename_component for a non-existing file. Also, it changed
long-standing behavior in a possibly incompatible way even for existing
files. This reverts the original fix and instead updates the
documentation to be consistent with the behavior.
Diffstat (limited to 'Source/cmGetFilenameComponentCommand.cxx')
-rw-r--r-- | Source/cmGetFilenameComponentCommand.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGetFilenameComponentCommand.cxx b/Source/cmGetFilenameComponentCommand.cxx index 81d019b..d06efe8 100644 --- a/Source/cmGetFilenameComponentCommand.cxx +++ b/Source/cmGetFilenameComponentCommand.cxx @@ -91,8 +91,7 @@ bool cmGetFilenameComponentCommand } // Collapse the path to its simplest form. - filename = cmSystemTools::CollapseFullPath(filename.c_str()); - result = cmSystemTools::GetRealPath(filename.c_str()); + result = cmSystemTools::CollapseFullPath(filename.c_str()); } else { |