BUG:6990 fix crash with set_source_files_properties

This commit is contained in:
Bill Hoffman 2008-05-08 15:49:53 -04:00
parent 2b6ee95c1d
commit b7ed54c950
1 changed files with 2 additions and 1 deletions

View File

@ -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" &&