diff options
author | Brad King <brad.king@kitware.com> | 2019-07-12 15:22:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-12 21:29:40 (GMT) |
commit | 22d3eb5d5e4ce9c6371ab709655928552453fbda (patch) | |
tree | ca27b28cfa41f5aa453e390743cfe8e2ec04138b /Source/cmJsonObjects.cxx | |
parent | f9e0cf64176628d07871741da2c6f585f52c4e39 (diff) | |
download | CMake-22d3eb5d5e4ce9c6371ab709655928552453fbda.zip CMake-22d3eb5d5e4ce9c6371ab709655928552453fbda.tar.gz CMake-22d3eb5d5e4ce9c6371ab709655928552453fbda.tar.bz2 |
Refactor checks for whether a target has an import library
Use `HasImportLibrary` for such checks.
Diffstat (limited to 'Source/cmJsonObjects.cxx')
-rw-r--r-- | Source/cmJsonObjects.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmJsonObjects.cxx b/Source/cmJsonObjects.cxx index 505188f..2423faf 100644 --- a/Source/cmJsonObjects.cxx +++ b/Source/cmJsonObjects.cxx @@ -516,9 +516,11 @@ static Json::Value DumpTarget(cmGeneratorTarget* target, Json::Value artifacts = Json::arrayValue; artifacts.append( target->GetFullPath(config, cmStateEnums::RuntimeBinaryArtifact)); - if (target->IsDLLPlatform()) { + if (target->HasImportLibrary(config)) { artifacts.append( target->GetFullPath(config, cmStateEnums::ImportLibraryArtifact)); + } + if (target->IsDLLPlatform()) { const cmGeneratorTarget::OutputInfo* output = target->GetOutputInfo(config); if (output && !output->PdbDir.empty()) { |