我有一个CMake文件,可以生成VS2015解决方案文件MyApp.sln。我使用以下命令分别为每个配置构建MyApp.sln:
msbuild MyApp.sln /property:Configuration=Debug
msbuild MyApp.sln /property:Configuration=RelWithDebInfo
msbuild MyApp.sln /property:Configuration=Release
我想知道是否有人知道如何使用单个msbuild命令构建所有配置。也许CMake可以生成一些"All"配置,例如?
我的问题与如何从命令行使用MSBuild构建所有内容?有所不同,因为我不手动修改MyApp.sln文件,而是由CMake生成,因此我需要在CMake中设置某些选项以创建“all”目标或以一种方式调用msbuild来构建所有配置。
msbuild MyApp.sln /t:ALL_BUILD /Configuration:"Debug;Release;RelWithDebInfo"
了吗? - vre