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

Method AddUniversalInstallRule

Source/cmInstallTargetGenerator.cxx:930–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void cmInstallTargetGenerator::AddUniversalInstallRule(
931 std::ostream& os, Indent indent, std::string const& toDestDirPath)
932{
933 cmMakefile const* mf = this->Target->Target->GetMakefile();
934
935 if (!mf->PlatformIsAppleEmbedded() || !mf->IsOn("XCODE")) {
936 return;
937 }
938
939 cmValue xcodeVersion = mf->GetDefinition("XCODE_VERSION");
940 if (!xcodeVersion ||
941 cmSystemTools::VersionCompareGreater("6", *xcodeVersion)) {
942 return;
943 }
944
945 switch (this->Target->GetType()) {
946 case cmStateEnums::EXECUTABLE:
947 case cmStateEnums::STATIC_LIBRARY:
948 case cmStateEnums::SHARED_LIBRARY:
949 case cmStateEnums::MODULE_LIBRARY:
950 break;
951
952 default:
953 return;
954 }
955
956 if (!this->Target->Target->GetPropertyAsBool("IOS_INSTALL_COMBINED")) {
957 return;
958 }
959
960 os << indent << "include(CMakeIOSInstallCombined)\n";
961 os << indent << "ios_install_combined("
962 << "\"" << this->Target->Target->GetName() << "\" "
963 << "\"" << toDestDirPath << "\")\n";
964}
965
966void cmInstallTargetGenerator::IssueCMP0095Warning(
967 std::string const& unescapedRpath)

Callers 1

PostReplacementTweaksMethod · 0.95

Calls 7

GetMakefileMethod · 0.45
IsOnMethod · 0.45
GetDefinitionMethod · 0.45
GetTypeMethod · 0.45
GetPropertyAsBoolMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected