[CMake] nmake, automoc and cmake problem

Boudewijn Rempt boud at valdyas.org
Fri Sep 19 03:58:51 EDT 2008


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?

Boudewijn



More information about the CMake mailing list