[CMake] Error in generated nmake files on Windows

Bill Hoffman bill.hoffman at kitware.com
Mon May 24 11:09:33 EDT 2010


On 5/24/2010 10:36 AM, Bo Thorsen wrote:

>>> 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?
>>>
>>> I'm on a 64 bit Windows 7 with Visual C++ 2008 Express Edition.
>>>
>>> Bo.
>>
>> Is it really just this single line or are you eliding the PROJECT
>> command? That one is required for anything to work....
>
> Sorry, I should mentioned that. It's a sub dir in the MariaDB structure.
> I have uncommented pretty much everything except the project line and
> the add_executable.
>

This means that CMake is failing to figure out 64/32 bit on the 
compiler, it has nothing to do with the project command.   It is a 
windows only issue.  Please follow the instructions in my first email.

-Bill


More information about the CMake mailing list