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

Method WriteObjectsStrings

Source/cmMakefileTargetGenerator.cxx:1931–1955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1929};
1930
1931void cmMakefileTargetGenerator::WriteObjectsStrings(
1932 std::vector<std::string>& objStrings, bool useWatcomQuote,
1933 std::string::size_type limit)
1934{
1935 cmValue pchExtension = this->Makefile->GetDefinition("CMAKE_PCH_EXTENSION");
1936
1937 cmMakefileTargetGeneratorObjectStrings helper(
1938 objStrings, this->LocalGenerator, useWatcomQuote,
1939 this->LocalGenerator->GetStateSnapshot().GetDirectory(), limit);
1940 for (std::string const& obj : this->Objects) {
1941 if (cmHasSuffix(obj, pchExtension)) {
1942 continue;
1943 }
1944 helper.Feed(obj);
1945 }
1946 for (std::string const& obj : this->ExternalObjects) {
1947 helper.Feed(obj);
1948 }
1949 auto const ispcAdditionalObjs =
1950 this->GeneratorTarget->GetGeneratedISPCObjects(this->GetConfigName());
1951 for (std::string const& obj : ispcAdditionalObjs) {
1952 helper.Feed(obj);
1953 }
1954 helper.Done();
1955}
1956
1957void cmMakefileTargetGenerator::WriteTargetDriverRule(
1958 std::string const& main_output, bool relink)

Callers 2

CreateObjectListsMethod · 0.95
WriteLibraryRulesMethod · 0.80

Calls 7

cmHasSuffixFunction · 0.85
FeedMethod · 0.80
DoneMethod · 0.80
GetDefinitionMethod · 0.45
GetDirectoryMethod · 0.45
GetStateSnapshotMethod · 0.45

Tested by

no test coverage detected