diff options
author | Brad King <brad.king@kitware.com> | 2021-06-10 19:41:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-10 19:52:12 (GMT) |
commit | e13704ce72a49684a835ab7ee3db9c2a928b5db5 (patch) | |
tree | b19a0c408b97c269db6c59012a57230ab777d059 /Source/cmStateDirectory.cxx | |
parent | ea6d338ea10cd9a567e727cbf3d365966cb6f43c (diff) | |
download | CMake-e13704ce72a49684a835ab7ee3db9c2a928b5db5.zip CMake-e13704ce72a49684a835ab7ee3db9c2a928b5db5.tar.gz CMake-e13704ce72a49684a835ab7ee3db9c2a928b5db5.tar.bz2 |
Add directory property to list imported targets
Model the change after commit cbca65826c (Add directory property to list
buildsystem targets, 2016-09-19, v3.7.0-rc1~79^2~1).
Fixes: #22291
Diffstat (limited to 'Source/cmStateDirectory.cxx')
-rw-r--r-- | Source/cmStateDirectory.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmStateDirectory.cxx b/Source/cmStateDirectory.cxx index 76201cd..c898dd4 100644 --- a/Source/cmStateDirectory.cxx +++ b/Source/cmStateDirectory.cxx @@ -8,7 +8,9 @@ #include <vector> #include <cm/iterator> +#include <cm/string_view> #include <cmext/algorithm> +#include <cmext/string_view> #include "cmAlgorithms.h" #include "cmProperty.h" @@ -475,6 +477,10 @@ cmProp cmStateDirectory::GetProperty(const std::string& prop, bool chain) const output = cmJoin(this->DirectoryState->NormalTargetNames, ";"); return &output; } + if (prop == "IMPORTED_TARGETS"_s) { + output = cmJoin(this->DirectoryState->ImportedTargetNames, ";"); + return &output; + } if (prop == "LISTFILE_STACK") { std::vector<std::string> listFiles; |