forked from qt-creator/qt-creator
Cmake: Let the generator determine the toolchain
Otherwise we need to parse the cbp file, which happens only if the buildconfiguration gets active. Also try to decouple a few internals a little bit by using signals. The CMakeProject still handles a few things directly instead of via signals, more to come eventually.
This commit is contained in:
@@ -61,9 +61,18 @@ public:
|
||||
ProjectExplorer::ToolChain::ToolChainType toolChainType() const;
|
||||
ProjectExplorer::ToolChain *toolChain() const;
|
||||
|
||||
void updateToolChain(const QString &compiler);
|
||||
|
||||
void setBuildDirectory(const QString &buildDirectory);
|
||||
|
||||
QString msvcVersion() const;
|
||||
void setMsvcVersion(const QString &msvcVersion);
|
||||
|
||||
signals:
|
||||
void msvcVersionChanged();
|
||||
|
||||
private:
|
||||
ProjectExplorer::ToolChain *m_toolChain;
|
||||
void updateToolChain() const;
|
||||
mutable ProjectExplorer::ToolChain *m_toolChain;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user