diff --git a/Source/cmUtilitySourceCommand.cxx b/Source/cmUtilitySourceCommand.cxx index 10cefb86b..9b542dce9 100644 --- a/Source/cmUtilitySourceCommand.cxx +++ b/Source/cmUtilitySourceCommand.cxx @@ -83,6 +83,9 @@ bool cmUtilitySourceCommand::InitialPass(std::vector const& args) std::string utilityExecutable = utilityDirectory+"/"+cmakeCFGout+"/" +utilityName+cmSystemTools::GetExecutableExtension(); + + // make sure we remove any /./ in the name + cmSystemTools::ReplaceString(utilityExecutable, "/./", "/"); // Enter the value into the cache. m_Makefile->AddCacheDefinition(cacheEntry.c_str(),