Commit e50a36df authored by Tushar Maheshwari's avatar Tushar Maheshwari
Browse files

cmGetFilenameComponentCommand: Add more components

LAST_EXT: gets last extension from filename with multiple periods
NAME_WLE: gets the name without the last extension
parent 378473f9
......@@ -88,6 +88,10 @@ bool cmGetFilenameComponentCommand::InitialPass(
result = cmSystemTools::GetFilenameExtension(filename);
} else if (args[2] == "NAME_WE") {
result = cmSystemTools::GetFilenameWithoutExtension(filename);
} else if (args[2] == "LAST_EXT") {
result = cmSystemTools::GetFilenameLastExtension(filename);
} else if (args[2] == "NAME_WLE") {
result = cmSystemTools::GetFilenameWithoutLastExtension(filename);
} else if (args[2] == "ABSOLUTE" || args[2] == "REALPATH") {
// If the path given is relative, evaluate it relative to the
// current source directory unless the user passes a different
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment