diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCMakePresetsFile.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCMakePresetsFile.cxx b/Source/cmCMakePresetsFile.cxx index 34a313b..cf5db6e 100644 --- a/Source/cmCMakePresetsFile.cxx +++ b/Source/cmCMakePresetsFile.cxx @@ -676,6 +676,10 @@ ExpandMacroResult ExpandMacro(const cmCMakePresetsFile& file, out += cmSystemTools::GetParentDirectory(file.SourceDir); return ExpandMacroResult::Ok; } + if (macroName == "sourceDirName") { + out += cmSystemTools::GetFilenameName(file.SourceDir); + return ExpandMacroResult::Ok; + } if (macroName == "presetName") { out += preset.Name; return ExpandMacroResult::Ok; |