summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-06 13:48:52 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-12-06 13:49:04 (GMT)
commitfb54e957d6a382310c0ec53b3f4d00d04cef6e85 (patch)
treeb0dddffd808fa41ba0853c8c846f1be58ba173ab /Source/cmGeneratorTarget.cxx
parent71d308f2a4e8653abbe18721bda5add4925ff148 (diff)
parentfc6508921cf291308b7270f19c14d373225bfd37 (diff)
downloadCMake-fb54e957d6a382310c0ec53b3f4d00d04cef6e85.zip
CMake-fb54e957d6a382310c0ec53b3f4d00d04cef6e85.tar.gz
CMake-fb54e957d6a382310c0ec53b3f4d00d04cef6e85.tar.bz2
Merge topic 'imported-implib-only'
fc6508921c cmComputeLinkInformation: Restore soname lookup for non-imported targets 03d86f9d9c cmGeneratorTarget: Add helper to check for known runtime artifact Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !9041
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 9082fe6..0868190 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1283,6 +1283,19 @@ bool cmGeneratorTarget::CanCompileSources() const
return this->Target->CanCompileSources();
}
+bool cmGeneratorTarget::HasKnownRuntimeArtifactLocation(
+ std::string const& config) const
+{
+ if (!this->IsRuntimeBinary()) {
+ return false;
+ }
+ if (!this->IsImported()) {
+ return true;
+ }
+ ImportInfo const* info = this->GetImportInfo(config);
+ return info && !info->Location.empty();
+}
+
const std::string& cmGeneratorTarget::GetLocationForBuild() const
{
static std::string location;