cmake configure fail:The CXX compiler identification is unknown The C compiler identification is unknown
cmake configure fail:The CXX compiler identification is unknown The C compiler identification is unknown.And in CMakeError.log, comes: PostBuildEvent: for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i :VCEnd 'C:\Users\victor\AppData\Local\Temp' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: 命令“for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i [C:\opencv249\sources\build\CMakeFiles\3.8.0-rc1\CompilerIdCXX\CompilerIdCXX.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: :VCEnd”已退出,代码为 1。 [C:\opencv249\sources\build\CMakeFiles\3.8.0-rc1\CompilerIdCXX\CompilerIdCXX.vcxproj] 已完成生成项目“C:\opencv249\sources\build\CMakeFiles\3.8.0-rc1\CompilerIdCXX\CompilerIdCXX.vcxproj”(默认目标)的操作 - 失败CMakeError.log