Run a CMake-generated INSTALL.vcxproj on Windows via command line only?

后端 未结 2 749
执笔经年
执笔经年 2021-02-10 20:00

I have a C++ program that I\'m trying to build and deploy on AppVeyor (thus, I have no GUI tools available). The dependencies of my project each use CMake for their build syste

2条回答
  •  心在旅途
    2021-02-10 20:32

    To invoke the building of a specific target, use the --target option of cmake --build, i.e. in your case the command will look like cmake --build (YOUR_BUILD_FOLDER) --config Release --target install. Of course you need to set up your compiler environment using vcvarsall.bat. You can use this command with other generators as well (note, that --config option is for multi-configuration tools only, MSVS is one of them).

提交回复
热议问题