install(EXPORT): Fix exporting target w/ source named using CONFIG genex

Fixes: #21203
This commit is contained in:
Deniz Bahadir
2020-09-18 14:48:33 +02:00
committed by Brad King
parent 46bb6ae8d4
commit bf114602da
2 changed files with 16 additions and 3 deletions
+1 -3
View File
@@ -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);