visual Studio 2017升级的cl并非完整路径,因此未在PATH中找到

时间:2018-10-24 06:54:58

标签: visual-studio cmake

错误详细信息:

Make build 
CD: ./_build
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown 
CMake Error at CMakeLists.txt:16 (project):
   The CMAKE_C_COMPILER:
      cl
    is not a full path and was not found in the PATH.

CMake Error at CMakeLists.txt:16 (project):    
   The CMAKE_CXX_COMPILER:
      cl
    is not a full path and was not found in the PATH.

-- Configuring incomplete, errors occurred! 
See also “D:/MYNTAI-Work/d-tmp/_build/CMakeFiles/CMakeOutput.log”. 
See also “D:/MYNTAI-Work/d-tmp/_build/CMakeFiles/CMakeError.log”. 
make: *** [Makefile:53: build] Error 1

在升级Visual Studio 2017之前很好。升级后将报告此错误。我运行了vcvarall.bat,但是没有用。

0 个答案:

没有答案