summaryrefslogtreecommitdiffstats
path: root/Source/cmRuntimeDependencyArchive.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-04-14 14:43:30 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-06-04 12:52:02 (GMT)
commited3633d88cc5faa6fd7eb68fdd774d6d1f9cfdc9 (patch)
treeb99345e45c9645c178601669ecd5d13c18b8ab1e /Source/cmRuntimeDependencyArchive.cxx
parentf2617cf8e6aca6ec0f8c7df6999c1f713c6d7474 (diff)
downloadCMake-ed3633d88cc5faa6fd7eb68fdd774d6d1f9cfdc9.zip
CMake-ed3633d88cc5faa6fd7eb68fdd774d6d1f9cfdc9.tar.gz
CMake-ed3633d88cc5faa6fd7eb68fdd774d6d1f9cfdc9.tar.bz2
install(TARGETS): Add RUNTIME_DEPENDENCIES option
Diffstat (limited to 'Source/cmRuntimeDependencyArchive.cxx')
-rw-r--r--Source/cmRuntimeDependencyArchive.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmRuntimeDependencyArchive.cxx b/Source/cmRuntimeDependencyArchive.cxx
index 06246d1..26f255d 100644
--- a/Source/cmRuntimeDependencyArchive.cxx
+++ b/Source/cmRuntimeDependencyArchive.cxx
@@ -397,3 +397,11 @@ cmRuntimeDependencyArchive::GetRPaths() const
{
return this->RPaths;
}
+
+bool cmRuntimeDependencyArchive::PlatformSupportsRuntimeDependencies(
+ const std::string& platform)
+{
+ static const std::set<std::string> supportedPlatforms = { "Windows", "Linux",
+ "Darwin" };
+ return supportedPlatforms.count(platform);
+}