summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-05-08 19:49:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-05-08 19:49:53 (GMT)
commitb7ed54c950e8b44bd303447c3df370bd913301e3 (patch)
treeaa5baf122e4a1ef88115accc94198f50a3b7198a /Source
parent2b6ee95c1dc24bfb5701c4156e6c429eac824368 (diff)
downloadCMake-b7ed54c950e8b44bd303447c3df370bd913301e3.zip
CMake-b7ed54c950e8b44bd303447c3df370bd913301e3.tar.gz
CMake-b7ed54c950e8b44bd303447c3df370bd913301e3.tar.bz2
BUG:6990 fix crash with set_source_files_properties
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSetSourceFilesPropertiesCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSetSourceFilesPropertiesCommand.cxx b/Source/cmSetSourceFilesPropertiesCommand.cxx
index 92d54ca..4a00e25 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" &&