CMake: Generating batch file calling cl.exe

2019-09-08 11:39发布

CMake is a build system generator supporting different build systems and environments like make, visual studio, code-blocks, eclipse-cdt, etc... To generate a project, you can use the -G option to specify the project generator.

Is there an option, are there any projects, or is it possible to write a generator that creates batch files calling cl.exe so I don't have to open visual studio every time?

1条回答
不美不萌又怎样
2楼-- · 2019-09-08 12:03

CMake is able to invoke the build tool (MSBuild in this case) by itself, using the --build option. See this question for more details.

查看更多
登录 后发表回答