diff --git a/Source/cmPackageInfoReader.cxx b/Source/cmPackageInfoReader.cxx index a5349cada7..4d8759d214 100644 --- a/Source/cmPackageInfoReader.cxx +++ b/Source/cmPackageInfoReader.cxx @@ -527,6 +527,13 @@ void cmPackageInfoReader::SetTargetProperties( cmMakefile* makefile, cmTarget* target, Json::Value const& data, std::string const& package, cm::string_view configuration) const { + // Add configuration (if applicable). + if (!configuration.empty()) { + target->AppendProperty("IMPORTED_CONFIGURATIONS", + cmSystemTools::UpperCase(configuration), + makefile->GetBacktrace()); + } + // Add compile and link features. for (std::string const& def : ReadList(data, "compile_features")) { AddCompileFeature(makefile, target, configuration, def);