| 870 | } |
| 871 | |
| 872 | void cmGlobalUnixMakefileGenerator3::TargetProgress::WriteProgressVariables( |
| 873 | unsigned long total, unsigned long& current) |
| 874 | { |
| 875 | cmGeneratedFileStream fout(this->VariableFile); |
| 876 | for (unsigned long i = 1; i <= this->NumberOfActions; ++i) { |
| 877 | fout << "CMAKE_PROGRESS_" << i << " = "; |
| 878 | if (total <= 100) { |
| 879 | unsigned long num = i + current; |
| 880 | fout << num; |
| 881 | this->Marks.push_back(num); |
| 882 | } else if (((i + current) * 100) / total > |
| 883 | ((i - 1 + current) * 100) / total) { |
| 884 | unsigned long num = ((i + current) * 100) / total; |
| 885 | fout << num; |
| 886 | this->Marks.push_back(num); |
| 887 | } |
| 888 | fout << "\n"; |
| 889 | } |
| 890 | fout << "\n"; |
| 891 | current += this->NumberOfActions; |
| 892 | } |
| 893 | |
| 894 | void cmGlobalUnixMakefileGenerator3::AppendGlobalTargetDepends( |
| 895 | std::vector<std::string>& depends, cmGeneratorTarget* target) |