summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmConfigureFileCommand.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx
index 77171a2..fdc3d02 100644
--- a/Source/cmConfigureFileCommand.cxx
+++ b/Source/cmConfigureFileCommand.cxx
@@ -51,11 +51,13 @@ bool cmConfigureFileCommand::Invoke(std::vector<std::string>& args)
m_InputFile = args[0];
m_OuputFile = args[1];
m_CopyOnly = false;
- if(args[2] == "COPYONLY")
+ if(args.size() >= 3)
{
- m_CopyOnly = true;
+ if(args[2] == "COPYONLY")
+ {
+ m_CopyOnly = true;
+ }
}
-
return true;
}