[CMake] nmake, automoc and cmake problem
Boudewijn Rempt
boud at valdyas.org
Fri Sep 19 08:56:48 EDT 2008
On Fri, 19 Sep 2008, Boudewijn Rempt wrote:
> Hi,
>
> We're having a little problem when trying to compile a Qt-based library (libiris)
> using nmake. We're using cmake 2.6 and automoc, but running nmake results in:
>
> C:\WORK\HyvesDesktop\trunk\build>nmake
>
> Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> Error: syntax error in C:.files
> NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.6\bin\automoc4.exe"' : return code '0x1'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
> Stop.
>
> This command is generated:
>
> "C:\Program Files\CMake 2.6\bin\automoc4.exe" C:/WORK/HyvesDesktop/trunk/build/3rdparty/iris/iris_automoc.cpp C:/WORK/HyvesDesktop/trunk/3rdparty/iris C:/WORK/HyvesDesktop/trunk/build/3rdparty/iris C:/qt45/bin/moc.exe "C:/Program Files/CMake 2.6/bin/cmake.exe"
>
> Either converting all forward slashes to backward slashes or adding quotas around the
> arguments fixes the build. Is this likely to be a bug in cmake or the automoc macros,
> or are we doing something wrong?
To follow up -- while putting quotes around the arguments generated by
the automoc's custom command or replacing the / by \ works, actually
moving CMake out of Program Files to c:\cmake26 also solves the build problem.
Is this likely to be a bug in cmake itself, or rather in the automoc cmake modules?
Boudewijn
More information about the CMake
mailing list