diff options
author | Brad King <brad.king@kitware.com> | 2020-07-20 19:30:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-07 12:46:34 (GMT) |
commit | bafa9fe8876387fa16cc8c03832d27df81238af1 (patch) | |
tree | ceacc9bc2f52d38411937d99363cfc9697ec3300 /Source/cmFileAPICodemodel.cxx | |
parent | 439191313363caea225a508634495c50d4cc60dd (diff) | |
download | CMake-bafa9fe8876387fa16cc8c03832d27df81238af1.zip CMake-bafa9fe8876387fa16cc8c03832d27df81238af1.tar.gz CMake-bafa9fe8876387fa16cc8c03832d27df81238af1.tar.bz2 |
fileapi: Add INTERFACE libraries with SOURCES to codemodel-v2
INTERFACE libraries with SOURCES now appear in the generated
buildsystem, so include them in the codemodel output too.
We do not need to bump the `codemodel-v2` object kind minor
version because that was already done in post-3.18 development
by commit 7d6861f367 (fileapi: Extend codemodel targets with
language standard, 2020-06-18).
Fixes: #18608
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r-- | Source/cmFileAPICodemodel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx index e9af208..55fb115 100644 --- a/Source/cmFileAPICodemodel.cxx +++ b/Source/cmFileAPICodemodel.cxx @@ -625,7 +625,7 @@ Json::Value CodemodelConfig::DumpTargets() for (cmGeneratorTarget* gt : targetList) { if (gt->GetType() == cmStateEnums::GLOBAL_TARGET || - gt->GetType() == cmStateEnums::INTERFACE_LIBRARY) { + !gt->IsInBuildSystem()) { continue; } |