[CMake] custom target not working on windows

Marc Schafer winddummy at gmail.com
Sun Aug 2 07:48:59 EDT 2009


Thank you for this information.  Adding "call" fixed my problem.

-Marc


On Fri, Jul 31, 2009 at 11:21 AM, Tyler Roscoe <tyler at cryptio.net> wrote:

> On Fri, Jul 31, 2009 at 11:14:39AM -0400, David Cole wrote:
> > This is not a VS specific problem, but rather how Windows batch files
> behave
> > in general.
> >
> > If an executable or batch file returns an error exit status, but the
> "call"
> > keyword is not used in the calling batch file, then the calling batch
> file
> > exits without executing the remainder of the script. Using the call
> keyword
> > prevents that behavior and makes it work like you'd expect.
>
> I have seen this behavior even when the batch file exits normally,
> without error condition. This is in VS2005 if it matters.
>
> tyler
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090802/1d3d2f81/attachment.htm>


More information about the CMake mailing list