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

Method GetDestinationForType

Source/cmInstallCommand.cxx:2756–2805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2754}
2755
2756std::string Helper::GetDestinationForType(
2757 cmInstallCommandArguments const* args, std::string const& type) const
2758{
2759 if (args && !args->GetDestination().empty()) {
2760 return args->GetDestination();
2761 }
2762 if (type == "BIN") {
2763 return this->GetRuntimeDestination(nullptr);
2764 }
2765 if (type == "SBIN") {
2766 return this->GetSbinDestination(nullptr);
2767 }
2768 if (type == "SYSCONF") {
2769 return this->GetSysconfDestination(nullptr);
2770 }
2771 if (type == "SHAREDSTATE") {
2772 return this->GetSharedStateDestination(nullptr);
2773 }
2774 if (type == "LOCALSTATE") {
2775 return this->GetLocalStateDestination(nullptr);
2776 }
2777 if (type == "RUNSTATE") {
2778 return this->GetRunStateDestination(nullptr);
2779 }
2780 if (type == "LIB") {
2781 return this->GetLibraryDestination(nullptr);
2782 }
2783 if (type == "INCLUDE") {
2784 return this->GetIncludeDestination(nullptr);
2785 }
2786 if (type == "DATA") {
2787 return this->GetDataDestination(nullptr);
2788 }
2789 if (type == "INFO") {
2790 return this->GetInfoDestination(nullptr);
2791 }
2792 if (type == "LOCALE") {
2793 return this->GetLocaleDestination(nullptr);
2794 }
2795 if (type == "MAN") {
2796 return this->GetManDestination(nullptr);
2797 }
2798 if (type == "DOC") {
2799 return this->GetDocDestination(nullptr);
2800 }
2801 if (type == "LIBEXEC") {
2802 return this->GetProgramExecutablesDestination(nullptr);
2803 }
2804 return "";
2805}
2806
2807} // namespace
2808

Callers 2

HandleFilesModeFunction · 0.80
HandleDirectoryModeFunction · 0.80

Calls 15

GetRuntimeDestinationMethod · 0.95
GetSbinDestinationMethod · 0.95
GetSysconfDestinationMethod · 0.95
GetLibraryDestinationMethod · 0.95
GetIncludeDestinationMethod · 0.95
GetDataDestinationMethod · 0.95
GetInfoDestinationMethod · 0.95
GetLocaleDestinationMethod · 0.95
GetManDestinationMethod · 0.95

Tested by

no test coverage detected