summaryrefslogtreecommitdiffstats
path: root/Source/cmElseCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r--Source/cmElseCommand.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx
index fbff491..046fa88 100644
--- a/Source/cmElseCommand.cxx
+++ b/Source/cmElseCommand.cxx
@@ -51,9 +51,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string> const& args)
if (args.size() == 2 && (args[0] == "EXISTS"))
{
- std::string tmp = args[1];
- m_Makefile->ExpandVariablesInString(tmp);
- if(cmSystemTools::FileExists(tmp.c_str()))
+ if(cmSystemTools::FileExists(args[1].c_str()))
{
f = new cmIfFunctionBlocker();
}