[CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Oct 22 11:22:46 EDT 2007
On 10/22/07, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
> On 10/22/07, Stefan Buschmann <s_buschmann at gmx.de> wrote:
> > Hi all,
> >
> > I'm currently having a problem using the HTMLHelp Compiler (hhc.exe) in
> > my CMake-Scripts. I build the doxygen docs, then call hhc.exe and the
> > .chm file is created correctly.
> > But hhc.exe seems to return an error code, so the build has failed and
> > my post-build commands are not invoked.
> >
> > 1) Did anyone have similar problems with hhc.exe? Any ideas why hhc.exe
> > is returning an error code although the .chm file is generated correctly
> > and there are no error messages on the output?
> > 2) Is there a way to tell ADD_CUSTOM_COMMAND to ignore the return value
> > of the process and consider it as always successfull?
>
> Hi Stefan,
>
>
> <not tested>
> I believe EXECUTE_PROCESS let you control the return value. Thus IMHO
> you should be able to discard it if you want
To complete my answer you need to write your EXECUTE_PROCESS within a
hhc.cmake file and then run:
cmake -P hhc.cmake
HTH
--
Mathieu
More information about the CMake
mailing list