[CMake] Make Visual Studio stop on error

frodak17 frodak17 at gmail.com
Fri Apr 12 10:32:48 EDT 2019


On Fri, Apr 12, 2019 at 10:16 AM Rob Boehne <robb at datalogics.com> wrote:

> All,
>
>
>
> We’re really loving CMake here! And we’ve been slowly figuring out how to
> make things work for our legacy C/C++ project.
>
> One improvement we want to make is to tell cmake to generate Visual Studio
> projects that stop building when a dependency target fails.
>
> Can something be set in the Visual Studio generator, or on the cmake
> –build command line to do that?
>
>
>
> The reason is that when a target fails, it keeps compiling 8000 source
> files, and we have to search Jenkins (web-based) logs of stdout/stderr to
> find what actually failed.  It also chews up resources with no benefit.
>
>
>
> Thanks,
>
>
>
> Rob
>
>
>

It seems that Visual Studio requires an addon to support this kind of
behaviour.

https://marketplace.visualstudio.com/items?itemName=EinarEgilsson.StopOnFirstBuildError
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190412/ec6ecebb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 124449 bytes
Desc: not available
URL: <https://cmake.org/pipermail/cmake/attachments/20190412/ec6ecebb/attachment-0001.png>


More information about the CMake mailing list