Visualstudio-docs: Batch Build not available in cmake project?

Created on 15 Apr 2020  Â·  9Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

Is it possible, that batch build is also not available, when using a cmake project?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 doc-bug visual-studio-windowprod vs-ide-compiltech

All 9 comments

@TSlivede -- thank you for your question. It looks like you're having an issue with the product itself, rather than an issue with the documentation. Here are a few options where you might consider asking your question:​

As well, you might also consider using the Report a Problem tool to report the issue.

@WilliamAntonRohm Actually I have an issue with the documentation: The linked page mentions, that batch build is not available for "Windows 8.x Store apps built for Windows using JavaScript." and for "Visual Basic projects".

However, if I'm not mistaken, batch build is also not available for cmake based projects, or am I mistaken? If it actually should work, and this documentation is in fact correct, than I will ask elsewhere for a solution.

@TSlivede -- thank you for clarifying. My apologies for the delay in responding.

@ghogen -- please look into this issue.

@TSlivede -- thank you for clarifying.

@ghogen -- please look into this issue.

@TSlivede Were you seeing an error or other problem when trying to use Batch Build on a solution that contained a CMake project?

@ghogen
Maybe, I just don't know how to do this correctly, because I never had "a solution that contained a CMake project".

I just open the folder containing the CMakeLists.txt as described here.
(This seems to work as expected - I can select any configuration listed in CMakeSettings.json using the configuration dropdown menu.)

However, the build menu does not contain a batch build entry.
As https://docs.microsoft.com/en-us/visualstudio/ide/how-to-build-multiple-configurations-simultaneously says "In that case, the command doesn't appear on the Build menu" for cases in which batch build is not supported, I assumed, that batch build is not available for cmake projects.


Note: For normal Visual Studio projects (not cmake projects) "batch build" is available in the build menu and works fine.

@TSlivede That sounds correct to me. It might be an interesting feature request for CMake builds to support multiple configuration builds. You could enter a request at https://developercommunity.visualstudio.com/spaces/8/index.html

I'll update the topic to say that CMake is not supported - Batch Build only works with solution file builds.

Was this page helpful?
0 / 5 - 0 ratings