Hi, short info for those of you who run into the same pitfall. I downloaded the free (free of charge) nmake tool version 1.50 from the Microsoft website. The problem is this nmake tool which produces the problems with blanks / spaces in folder- and filenames. Even parameters which contain double quotes (") make problems in the Makefile. We have several installations of MS Visual Studio in different versions (Visual Studio 2003, 2008, 2010) and now I tried the NMake from Visual Studio 2003 which is file version 7.10.3077 and this works fine. Of course this version is NOT free of charge, because it's part of the buyable package from Microsoft. Just the short form: the nmake tool version 1.50 isn't able to use the generated Makefile. Br, Martin... On 20.09.11 11:00, Martin Kupke wrote: Hi, after many helpful hints from other users now I was able to create a NMake Makefile using CMake. I'm working in a Windows XP environment in a cmd.exe command line interface (shell). The CMake tool created the typical Makefile including the subfolders etc. in my output folder, without any errors or warnings. To compile my simple test project (in moment it contains only a single source standard C file), I call nmake.exe in my output path in the console. This is the same as calling nmake.exe with the parameter -f Makefile.The output of the nmake build process is: ######################## snip ######################## D:\novero\Discovery\impl\target\CarIF_Appl\output\Debug>nmake -f Makefile Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. 'C:\Program' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2' Stop. ######################## snap ######################## I assume that there is a problem with the filename / foldername, because of the line: 'C:\Program' is not recognized as an internal or external command... A search over the output files from CMake including the generated Makefile itself shows that all references in variables are set with double quote (") e.g. "C:\Program Files\CMake 2.8\bin\cmake.exe". Many thanks for your helpful comments in advance. Br, Martin... _______________________________________________ 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 --
martin
kupke can diagnostics
engineer | senior software developer m: +49.151.5511.3632 | e: martin.ku...@novero.com skype:
martin.kupke_novero
| w: www.novero.com |
_______________________________________________ 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