forked from qt-creator/qt-creator
McuSupport: Add compilers to CMake configuration
To get rid of the warning triangle on the kit icon, CMAKE_CXX_COMPILER and CMAKE_C_COMPILER get defined. Change-Id: I40ee47e4059e8986557609048f465972985e3d5b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -533,6 +533,8 @@ static void setKitCMakeOptions(ProjectExplorer::Kit *k, const BoardOptions* boar
|
||||
using namespace CMakeProjectManager;
|
||||
|
||||
CMakeConfig config = CMakeConfigurationKitAspect::configuration(k);
|
||||
config.append(CMakeConfigItem("CMAKE_CXX_COMPILER", "%{Compiler:Executable:Cxx}"));
|
||||
config.append(CMakeConfigItem("CMAKE_C_COMPILER", "%{Compiler:Executable:C}"));
|
||||
if (!board->toolChainFile().isEmpty())
|
||||
config.append(CMakeConfigItem("CMAKE_TOOLCHAIN_FILE",
|
||||
(qulDir + "/" + board->toolChainFile()).toUtf8()));
|
||||
|
Reference in New Issue
Block a user