cmGetFilenameComponentCommand: Add more components
LAST_EXT: gets last extension from filename with multiple periods NAME_WLE: gets the name without the last extension
This commit is contained in:
parent
378473f9f1
commit
e50a36df48
@ -88,6 +88,10 @@ bool cmGetFilenameComponentCommand::InitialPass(
|
|||||||
result = cmSystemTools::GetFilenameExtension(filename);
|
result = cmSystemTools::GetFilenameExtension(filename);
|
||||||
} else if (args[2] == "NAME_WE") {
|
} else if (args[2] == "NAME_WE") {
|
||||||
result = cmSystemTools::GetFilenameWithoutExtension(filename);
|
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") {
|
} else if (args[2] == "ABSOLUTE" || args[2] == "REALPATH") {
|
||||||
// If the path given is relative, evaluate it relative to the
|
// If the path given is relative, evaluate it relative to the
|
||||||
// current source directory unless the user passes a different
|
// current source directory unless the user passes a different
|
||||||
|
Loading…
Reference in New Issue
Block a user