QTCreator 打开 CMake工程CMakeTestCCompiler.cmake模块报错

错误信息

message(FATAL_ERROR "The C compiler\n  \"${CMAKE_C_COMPILER}\"\n"
      "is not able to compile a simple test program.\nIt fails "
      "with the following output:\n  ${_output}\n\n"
      "CMake will not be able to correctly generate this project.")

解决方法

将QtCreator所在目录加入到环境变量PATH中,即可解决上述问题。

QTCreator 打开 CMake工程CMakeTestCCompiler.cmake模块报错_第1张图片

 

你可能感兴趣的:(qt)