diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-01-26 14:03:01 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-01-28 00:06:31 (GMT) |
commit | 76cea3dfe2b968885f8a956504bcee9d46a58303 (patch) | |
tree | 92cb6042a04146668cb64743bdae51d1133c0f86 /Source/cmCMakePathCommand.cxx | |
parent | 9b96fbc358aba8110ba09d3ad2262223ec0f0167 (diff) | |
download | CMake-76cea3dfe2b968885f8a956504bcee9d46a58303.zip CMake-76cea3dfe2b968885f8a956504bcee9d46a58303.tar.gz CMake-76cea3dfe2b968885f8a956504bcee9d46a58303.tar.bz2 |
cmake_path: rename 'GET ... RELATIVE_PATH' to 'GET ... RELATIVE_PART'
For consistency, subcommand 'HAS_RELATIVE_PATH' is also renamed
to 'HAS_RELATIVE_PART'.
Fixes: #21385
Diffstat (limited to 'Source/cmCMakePathCommand.cxx')
-rw-r--r-- | Source/cmCMakePathCommand.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCMakePathCommand.cxx b/Source/cmCMakePathCommand.cxx index e14dce0..962fdcc 100644 --- a/Source/cmCMakePathCommand.cxx +++ b/Source/cmCMakePathCommand.cxx @@ -194,7 +194,7 @@ bool HandleGetCommand(std::vector<std::string> const& args, } return path.GetNarrowStem(); } }, - { "RELATIVE_PATH"_s, + { "RELATIVE_PART"_s, [](const cmCMakePath& path, bool) -> cmCMakePath { return path.GetRelativePath(); } }, @@ -817,7 +817,7 @@ bool HandleHasStemCommand(std::vector<std::string> const& args, [](const cmCMakePath& path) -> bool { return path.HasStem(); }); } -bool HandleHasRelativePathCommand(std::vector<std::string> const& args, +bool HandleHasRelativePartCommand(std::vector<std::string> const& args, cmExecutionStatus& status) { return HandleHasItemCommand( @@ -986,7 +986,7 @@ bool cmCMakePathCommand(std::vector<std::string> const& args, { "HAS_FILENAME"_s, HandleHasFilenameCommand }, { "HAS_EXTENSION"_s, HandleHasExtensionCommand }, { "HAS_STEM"_s, HandleHasStemCommand }, - { "HAS_RELATIVE_PATH"_s, HandleHasRelativePathCommand }, + { "HAS_RELATIVE_PART"_s, HandleHasRelativePartCommand }, { "HAS_PARENT_PATH"_s, HandleHasParentPathCommand }, { "IS_ABSOLUTE"_s, HandleIsAbsoluteCommand }, { "IS_RELATIVE"_s, HandleIsRelativeCommand }, |