Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.15.0
-
None
Description
After updating the msvc toolchain the compiler might be in a different location. Opening any cmake project that has been loaded before the update will result in the following wall of text:
Running C:\Qt\Tools\CMake_64\bin\cmake.exe -S C:/dev/src/qc -B C:/dev/build/qc-qc-Desktop_Qt_6_0_2_MSVC2019_64bit-Debug in C:\dev\build\qc-qc-Desktop_Qt_6_0_2_MSVC2019_64bit-Debug. -- Configuring incomplete, errors occurred! See also "C:/dev/build/qc-qc-Desktop_Qt_6_0_2_MSVC2019_64bit-Debug/CMakeFiles/CMakeOutput.log". See also "C:/dev/build/qc-qc-Desktop_Qt_6_0_2_MSVC2019_64bit-Debug/CMakeFiles/CMakeError.log". CMake Error at CMakeLists.txt:18 (project): The CMAKE_C_COMPILER: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29910/bin/HostX64/x64/cl.exe is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:18 (project): The CMAKE_CXX_COMPILER: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29910/bin/HostX64/x64/cl.exe is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake process exited with exit code 1. Elapsed time: 00:00.
Is there a way we can automatically adjust the compiler to the one that is configured in the kit without having to completely throw away the current build configuration?
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-24443 QtCreator/CMake does not recognize an updated compiler (Windows/MSVC)
- Closed