diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-11-13 23:32:51 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-11-13 22:40:18 +0000 |
commit | a035635f1fd901a94dc79c978ab5492be9d49fd6 (patch) | |
tree | 9511ee193066de53b2c44289376e093f62ca2348 /src/plugins/mcusupport/mcusupportoptions.cpp | |
parent | 7f8576d49f54f9aaa448aa97677bd7701c4fca80 (diff) |
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>
Diffstat (limited to 'src/plugins/mcusupport/mcusupportoptions.cpp')
-rw-r--r-- | src/plugins/mcusupport/mcusupportoptions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/mcusupport/mcusupportoptions.cpp b/src/plugins/mcusupport/mcusupportoptions.cpp index 916b8894879..8a639c6705f 100644 --- a/src/plugins/mcusupport/mcusupportoptions.cpp +++ b/src/plugins/mcusupport/mcusupportoptions.cpp @@ -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())); |