Jelajahi Sumber

BUG:6990 fix crash with set_source_files_properties

Bill Hoffman 17 tahun lalu
induk
melakukan
b7ed54c950
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      Source/cmSetSourceFilesPropertiesCommand.cxx

+ 2 - 1
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" &&