summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-02-19 14:27:48 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-02-24 19:55:17 (GMT)
commitd34d28e688c9ac5f1e5e446bb1131b3018721053 (patch)
treec3a5c931025e51ad264211303e050c507aaae2c9 /Source/cmGeneratorTarget.cxx
parente742cf2c1737ececad51f193a81447dce9790cb2 (diff)
downloadCMake-d34d28e688c9ac5f1e5e446bb1131b3018721053.zip
CMake-d34d28e688c9ac5f1e5e446bb1131b3018721053.tar.gz
CMake-d34d28e688c9ac5f1e5e446bb1131b3018721053.tar.bz2
Genex: Add TARGET_RUNTIME_DLLS genex
Co-Authored-by: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index d7e9952..d3c9959 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1062,6 +1062,20 @@ const std::string& cmGeneratorTarget::GetLocation(
return location;
}
+cm::optional<std::string> cmGeneratorTarget::MaybeGetLocation(
+ std::string const& config) const
+{
+ cm::optional<std::string> location;
+ if (cmGeneratorTarget::ImportInfo const* imp = this->GetImportInfo(config)) {
+ if (!imp->Location.empty()) {
+ location = imp->Location;
+ }
+ } else {
+ location = this->GetFullPath(config, cmStateEnums::RuntimeBinaryArtifact);
+ }
+ return location;
+}
+
std::vector<cmCustomCommand> const& cmGeneratorTarget::GetPreBuildCommands()
const
{