diff --git a/Source/cmSourceGroupCommand.cxx b/Source/cmSourceGroupCommand.cxx index ba74b15be..aa8ef029d 100644 --- a/Source/cmSourceGroupCommand.cxx +++ b/Source/cmSourceGroupCommand.cxx @@ -124,6 +124,7 @@ bool cmSourceGroupCommand::InitialPass(std::vector const& args) src += "/"; src += args[i]; } + src = cmSystemTools::CollapseFullPath(src.c_str()); sg->AddGroupFile(src.c_str()); } else