[CMake] Continue install after a failure

Andreas Pakulat apaku at gmx.de
Sat Oct 20 06:46:47 EDT 2012


Hi,

On Sat, Oct 20, 2012 at 11:39 AM, Petr Kmoch <petr.kmoch at gmail.com> wrote:
> when running the install step of a CMake-generated buildsystem (i.e. 'make
> install' or building the VS project INSTALL), the run terminates after the
> first failure (e.g. when it cannot find a file which is to be installed). Is
> there a way to globally change this behaviour so that the error is reported
> (perhaps as a warning), but the install step goes on?

For Makefile Generator you can run make -k install, that way make
keeps on going even when errors occur. No idea about VS, NMake, Ninja
or XCode generators probably depends on wether the respective tool has
a switch for continuing if errors occur.

Andreas


More information about the CMake mailing list