diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-04-04 06:03:29 (GMT) |
---|---|---|
committer | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-04-05 04:36:49 (GMT) |
commit | fb433ff283e57fc953975e7a7cfb9f24dcbf789b (patch) | |
tree | 84d2a68af7946a000c1bba0cc60078474ba57a7f /Source/cmExportBuildFileGenerator.cxx | |
parent | 4c1f33961f784c47bcd93f4a5875c1c8f60873b7 (diff) | |
download | CMake-fb433ff283e57fc953975e7a7cfb9f24dcbf789b.zip CMake-fb433ff283e57fc953975e7a7cfb9f24dcbf789b.tar.gz CMake-fb433ff283e57fc953975e7a7cfb9f24dcbf789b.tar.bz2 |
cmGeneratorTarget: Make import library checks config-aware
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r-- | Source/cmExportBuildFileGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx index bbbc998..72489bf 100644 --- a/Source/cmExportBuildFileGenerator.cxx +++ b/Source/cmExportBuildFileGenerator.cxx @@ -224,13 +224,14 @@ void cmExportBuildFileGenerator::SetImportLocationProperty( } // Add the import library for windows DLLs. - if (target->HasImportLibrary() && + if (target->HasImportLibrary(config) && mf->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX")) { std::string prop = "IMPORTED_IMPLIB"; prop += suffix; std::string value = target->GetFullPath(config, cmStateEnums::ImportLibraryArtifact); - target->GetImplibGNUtoMS(value, value, "${CMAKE_IMPORT_LIBRARY_SUFFIX}"); + target->GetImplibGNUtoMS(config, value, value, + "${CMAKE_IMPORT_LIBRARY_SUFFIX}"); properties[prop] = value; } } |