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