diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 9b8273529..6f7a0716c 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1250,6 +1250,10 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name) { dir = cmSystemTools::GetCurrentWorkingDirectory(); } + if(file == "") + { + return dir; + } return dir + "/" + file; #endif }