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

Method WriteTargetClean

Source/cmGlobalFastbuildGenerator.cxx:1818–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1816}
1817
1818void cmGlobalFastbuildGenerator::WriteTargetClean()
1819{
1820 if (AllFilesToClean.empty()) {
1821 FastbuildAliasNode clean;
1822 clean.Name = FASTBUILD_CLEAN_TARGET_NAME;
1823 clean.PreBuildDependencies.emplace(FASTBUILD_CLEAN_FILE_NAME);
1824 WriteAlias(clean, 0);
1825 return;
1826 }
1827 WriteCleanScript();
1828 FastbuildExecNode clean;
1829 clean.Name = FASTBUILD_CLEAN_TARGET_NAME;
1830 clean.ExecExecutable = GetExternalShellExecutable();
1831 clean.ExecArguments =
1832 FASTBUILD_SCRIPT_FILE_ARG FASTBUILD_1_INPUT_PLACEHOLDER;
1833 clean.ExecInput = { FASTBUILD_CLEAN_SCRIPT_NAME };
1834 clean.ExecAlways = true;
1835 clean.ExecUseStdOutAsOutput = true;
1836 clean.ExecOutput = FASTBUILD_CLEAN_FILE_NAME;
1837 clean.ExecWorkingDir = this->GetCMakeInstance()->GetHomeOutputDirectory();
1838 WriteExec(clean, 0);
1839}
1840
1841void cmGlobalFastbuildGenerator::WriteTargets()
1842{

Callers 1

WriteTargetsMethod · 0.95

Calls 3

emplaceMethod · 0.80
emptyMethod · 0.45
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected