From b7ed54c950e8b44bd303447c3df370bd913301e3 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 8 May 2008 15:49:53 -0400 Subject: BUG:6990 fix crash with set_source_files_properties --- Source/cmSetSourceFilesPropertiesCommand.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/cmSetSourceFilesPropertiesCommand.cxx') 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::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" && -- cgit v1.2.1