QT VC CMake Compiler path

Viewed 2507

I am trying to setup Qt Creator to use the VC2017 compiler. It detects everything automatically but I keep getting a warning for my Kit setup (shown in the tooltip in the screenshot below) that says CMake configuration has a path to a C/C++ compiler set that does not match the compiler path configured in the tool chain of the kit.

I changed CMake Configuration to the following values:

CMAKE_CXX_COMPILER:STRING=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\cl.exe
CMAKE_C_COMPILER:STRING=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\cl.exe
CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}

But nothing changes. Here's a screenshot: enter image description here

Screenshot of the Compilers tab:enter image description here

Any help would be highly appreciated. Thanks!

1 Answers
Related