Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/130.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ cmake:使用msbuild.exe而不是vs2013使用生成器=";Visual Studio 12 vs2013 Win64“;_C++_Windows_Batch File_Msbuild_Cmake - Fatal编程技术网

C++ cmake:使用msbuild.exe而不是vs2013使用生成器=";Visual Studio 12 vs2013 Win64“;

C++ cmake:使用msbuild.exe而不是vs2013使用生成器=";Visual Studio 12 vs2013 Win64“;,c++,windows,batch-file,msbuild,cmake,C++,Windows,Batch File,Msbuild,Cmake,您可以从批处理文件中指定,还是在cmake安装下编辑文件?? 我想在不使用visual studio IDE的情况下使用msbuild.exe,但出现以下错误: -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:6 (project): No CMAKE_C_COMPILER could be found

您可以从批处理文件中指定,还是在cmake安装下编辑文件??

我想在不使用visual studio IDE的情况下使用msbuild.exe,但出现以下错误:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:6 (project):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:6 (project):
  No CMAKE_CXX_COMPILER could be found.
我想它正在IDE安装下查找msbuild.exe,但找不到它,因为没有IDE。 1) 我这样想对吗

我想指定编译器,但它不能通过cmakeList.txt,也不能更改cmake中已经设置的内容

2) 是否可以安装msbuild 2013而不是vs2013,并且仍然使用cmake where GENERATOR=“Visual Studio 12 vs2013 Win64”

3) 如果是,您可以指定msbuild来自批处理文件的位置,或者在cmake安装下编辑文件吗

使用msbuild 2013和generator从以下批处理文件设置,其中vc\u版本为12,vs\u版本为2013:

set GENERATOR="Visual Studio %VC_VER% %VS_VERSION% Win64"

你试过使用CMake的生成器吗?你试过使用CMake的生成器吗?