forked from qt-creator/qt-creator
CMake: Export internal cmake cache values
Those are useful for the cmake internal classes, but need to be filtered out when they are going to get displayed to the users. Change-Id: I0bb62fa840fa8cb9e6f3b47300ba85a2b186bad0 Reviewed-by: Alexander Drozdov <adrozdoff@gmail.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -197,7 +197,9 @@ QList<ConfigModel::DataItem> CMakeBuildConfiguration::completeCMakeConfiguration
|
||||
if (m_completeConfigurationCache.isEmpty())
|
||||
m_completeConfigurationCache = m_buildDirManager->parsedConfiguration();
|
||||
|
||||
return Utils::transform(m_completeConfigurationCache, [](const CMakeConfigItem &i) {
|
||||
CMakeConfig cache = Utils::filtered(m_completeConfigurationCache,
|
||||
[](const CMakeConfigItem &i) { return i.type != CMakeConfigItem::INTERNAL; });
|
||||
return Utils::transform(cache, [](const CMakeConfigItem &i) {
|
||||
ConfigModel::DataItem j;
|
||||
j.key = QString::fromUtf8(i.key);
|
||||
j.value = QString::fromUtf8(i.value);
|
||||
|
||||
Reference in New Issue
Block a user