CMake: Write creators settings into build directory

Write a file qtcsettings.cmake into the build directory. This
file contains all applicable CMake configuration settings that
creator wants to set.

Use "cmake -C qtcsettings.cmake .." to reconfigure on the command
line to make use of this file.

Change-Id: I4a69d082c50bb66e60b4eec1b3155df53e00734d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2019-10-17 15:20:23 +02:00
parent 6eaf239777
commit 196b0da08a
8 changed files with 61 additions and 12 deletions

View File

@@ -84,13 +84,6 @@ CMakeProcess::~CMakeProcess()
}
}
QStringList CMakeProcess::toArguments(const CMakeConfig &config,
const Utils::MacroExpander *expander) {
return Utils::transform(config, [expander](const CMakeConfigItem &i) -> QString {
return i.toArgument(expander);
});
}
void CMakeProcess::run(const BuildDirParameters &parameters, const QStringList &arguments)
{
QTC_ASSERT(!m_process && !m_parser && !m_future, return);