summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-01-03 14:34:40 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-01-03 14:34:40 (GMT)
commitd163cb70147b9c032c966702532e51ce5a49574a (patch)
tree16d7dbc33bb544574b5380a30dcbc26783acec5f /Source/cmIfCommand.cxx
parente07ea14e31e1d91632bdd5d56124ab394042f0d1 (diff)
downloadCMake-d163cb70147b9c032c966702532e51ce5a49574a.zip
CMake-d163cb70147b9c032c966702532e51ce5a49574a.tar.gz
CMake-d163cb70147b9c032c966702532e51ce5a49574a.tar.bz2
expand vars nwo for exists test
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 83da56f..b86a754 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -136,7 +136,9 @@ bool cmIfCommand::InitialPass(std::vector<std::string> const& args)
if (args.size() == 2 && (args[0] == "EXISTS"))
{
- if(!cmSystemTools::FileExists(args[1].c_str()))
+ std::string tmp = args[1];
+ m_Makefile->ExpandVariablesInString(tmp);
+ if(!cmSystemTools::FileExists(tmp.c_str()))
{
f = new cmIfFunctionBlocker();
}