summaryrefslogtreecommitdiff
path: root/Source/cmSetSourceFilesPropertiesCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-05-08 15:49:53 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2008-05-08 15:49:53 -0400
commitb7ed54c950e8b44bd303447c3df370bd913301e3 (patch)
treeaa5baf122e4a1ef88115accc94198f50a3b7198a /Source/cmSetSourceFilesPropertiesCommand.cxx
parent2b6ee95c1dc24bfb5701c4156e6c429eac824368 (diff)
downloadcmake-b7ed54c950e8b44bd303447c3df370bd913301e3.tar.gz
BUG:6990 fix crash with set_source_files_properties
Diffstat (limited to 'Source/cmSetSourceFilesPropertiesCommand.cxx')
-rw-r--r--Source/cmSetSourceFilesPropertiesCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSetSourceFilesPropertiesCommand.cxx b/Source/cmSetSourceFilesPropertiesCommand.cxx
index 92d54ca22c..4a00e25842 100644
--- a/Source/cmSetSourceFilesPropertiesCommand.cxx
+++ b/Source/cmSetSourceFilesPropertiesCommand.cxx
@@ -33,7 +33,8 @@ bool cmSetSourceFilesPropertiesCommand
std::vector<std::string>::const_iterator j;
j = args.begin();
// old style allows for specifier before PROPERTIES keyword
- while (*j != "ABSTRACT" &&
+ while (j != args.end() &&
+ *j != "ABSTRACT" &&
*j != "WRAP_EXCLUDE" &&
*j != "GENERATED" &&
*j != "COMPILE_FLAGS" &&