MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteProgressVariables

Method WriteProgressVariables

Source/cmGlobalUnixMakefileGenerator3.cxx:872–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870}
871
872void 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
894void cmGlobalUnixMakefileGenerator3::AppendGlobalTargetDepends(
895 std::vector<std::string>& depends, cmGeneratorTarget* target)

Callers 1

GenerateMethod · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected