首页 > 技术文章 > VS2013+CMake+编译时遇到的问题 MSB3073

ybqjymy 2020-07-31 13:33 原文

bulid INSTALL工程时,发生如下错误:

 1 error MSB3073: The command "setlocal
 2 E:\cmake3.0.0\CMake\bin\cmake.exe -DBUILD_TYPE=Debug -P cmake_install.cmake
 3 if %errorlevel% neq 0 goto :cmEnd
 4 :cmEnd
 5 endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
 6 :cmErrorLevel
 7 exit /b %1
 8 :cmDone
 9 if %errorlevel% neq 0 goto :VCEnd
10 :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 INSTALL

查看输出信息发现是由于VS2013没有权限:

解决方法:以管理员身份运行VS2013

推荐阅读