summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsJavaParserHelper.cxx
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2024-08-21 18:33:52 (GMT)
committerBrad King <brad.king@kitware.com>2024-08-26 13:55:57 (GMT)
commitb0be1bd9ca720296261fec4733435d69f54e5130 (patch)
treee6c097b67bfdc5de923e5f9c6ce5d7c5acc78d6b /Source/cmDependsJavaParserHelper.cxx
parent8dcb35911ca3570cc7fcb6820def8d86b5cd76cb (diff)
downloadCMake-b0be1bd9ca720296261fec4733435d69f54e5130.zip
CMake-b0be1bd9ca720296261fec4733435d69f54e5130.tar.gz
CMake-b0be1bd9ca720296261fec4733435d69f54e5130.tar.bz2
cmake_path: Fix 'GET "foo/.." STEM' result
`cmake_path(GET "foo/.." STEM out)` is supposed to set `out` to `".."`, the entire `cmake_path(GET "foo/.." FILENAME)` result. However, the `GetNarrowStem()` logic in `cmCMakePath` was lacking the `.` and `..` special-casing logic present in other methods. As a result, it would erroneously trim the second `.` off of a stem of `..` and return only `.`. This caused the result of `cmake_path(GET "foo/.." STEM)` to be `"."`. Making the standard empty-or-.-or-.. checks and bailing out early fixes the result of `cmCMakePaths{".."}.GetNarrowStem()`. Fixes: #26235
Diffstat (limited to 'Source/cmDependsJavaParserHelper.cxx')
0 files changed, 0 insertions, 0 deletions