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

Method GetLinkPIEProperty

Source/cmGeneratorTarget.cxx:768–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768char const* cmGeneratorTarget::GetLinkPIEProperty(
769 std::string const& config) const
770{
771 static std::string PICValue;
772
773 PICValue = this->GetLinkInterfaceDependentStringAsBoolProperty(
774 "POSITION_INDEPENDENT_CODE", config);
775
776 if (PICValue == "(unset)") {
777 // POSITION_INDEPENDENT_CODE is not set
778 return nullptr;
779 }
780
781 auto status = this->GetPolicyStatusCMP0083();
782 return (status != cmPolicies::WARN && status != cmPolicies::OLD)
783 ? PICValue.c_str()
784 : nullptr;
785}
786
787bool cmGeneratorTarget::IsIPOEnabled(std::string const& lang,
788 std::string const& config) const

Calls 2

c_strMethod · 0.80

Tested by

no test coverage detected