On 5/24/2010 9:42 AM, Michael Wild wrote:

On 24. May, 2010, at 15:24 , Bo Thorsen wrote:

Hi all,

I have as simple a CMakeLists.txt as possible:

ADD_EXECUTABLE(comp_err comp_err.c)

I did these two commands:

$ set CMAKE_BUILD_TYPE=RelWithDebInfo
$ cmake -G "NMake Makefiles"

I got this:

Building C object extra/CMakeFiles/comp_err.dir/comp_err.c.obj
comp_err.c
Linking C executable comp_err.exe
LINK : fatal error LNK1146: no argument specified with option '/machine:'
LINK failed. with 2
NMAKE : fatal error U1077: '"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"' : 
return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Is it something I'm doing wrong, or should I report a bug on this?


Make sure you start with a clean build tree, and run CMake from a VS command prompt. Have a look at CMakeError.log and CMakeOutput.log to see what went wrong if that does not fix the problem.

-Bill
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to