mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
install(EXPORT): Fix exporting target w/ source named using CONFIG genex
Fixes: #21203
This commit is contained in:
@@ -565,11 +565,9 @@ void cmExportFileGenerator::PopulateCompatibleInterfaceProperties(
|
||||
ifaceProperties);
|
||||
|
||||
if (gtarget->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
|
||||
getCompatibleInterfaceProperties(gtarget, ifaceProperties, "");
|
||||
|
||||
std::vector<std::string> configNames =
|
||||
gtarget->Target->GetMakefile()->GetGeneratorConfigs(
|
||||
cmMakefile::ExcludeEmptyConfig);
|
||||
cmMakefile::IncludeEmptyConfig);
|
||||
|
||||
for (std::string const& cn : configNames) {
|
||||
getCompatibleInterfaceProperties(gtarget, ifaceProperties, cn);
|
||||
|
||||
Reference in New Issue
Block a user