summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPICodemodel.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-05-28 18:20:51 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-05-31 13:02:45 (GMT)
commitf7ba3a05893279f6704db15358b08fd4ecb28814 (patch)
tree648dd424cac61cf2b76eb57d250410d7f4358fcf /Source/cmFileAPICodemodel.cxx
parentdf7040a2718a0de2b074a6e55c5ce960d85d8d6f (diff)
downloadCMake-f7ba3a05893279f6704db15358b08fd4ecb28814.zip
CMake-f7ba3a05893279f6704db15358b08fd4ecb28814.tar.gz
CMake-f7ba3a05893279f6704db15358b08fd4ecb28814.tar.bz2
FileAPI: Populate information for IMPORTED_RUNTIME_ARTIFACTS
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r--Source/cmFileAPICodemodel.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx
index 945b547..ff11f4a 100644
--- a/Source/cmFileAPICodemodel.cxx
+++ b/Source/cmFileAPICodemodel.cxx
@@ -29,6 +29,7 @@
#include "cmInstallExportGenerator.h"
#include "cmInstallFilesGenerator.h"
#include "cmInstallGenerator.h"
+#include "cmInstallImportedRuntimeArtifactsGenerator.h"
#include "cmInstallScriptGenerator.h"
#include "cmInstallSubdirectoryGenerator.h"
#include "cmInstallTargetGenerator.h"
@@ -1009,6 +1010,15 @@ Json::Value DirectoryObject::DumpInstaller(cmInstallGenerator* gen)
installer["scriptFile"] = RelativeIfUnder(
this->TopSource, installScript->GetScript(this->Config));
}
+ } else if (auto* installImportedRuntimeArtifacts =
+ dynamic_cast<cmInstallImportedRuntimeArtifactsGenerator*>(
+ gen)) {
+ installer["type"] = "importedRuntimeArtifacts";
+ installer["destination"] =
+ installImportedRuntimeArtifacts->GetDestination(this->Config);
+ if (installImportedRuntimeArtifacts->GetOptional()) {
+ installer["isOptional"] = true;
+ }
}
// Add fields common to all install generators.