[CMake] nmake to gnu-make

Christian Buhtz exsudat at gmx.de
Sun Sep 23 09:21:39 EDT 2007


I try to "port" a nmake-makefile to a gnu-makefile (MinGW).

There is a line
!include "../../../Build.mak"

I modified it to
include "../../../Build.mak"

Then make says
makefile.gcc:152: "../../../Build.mak": Invalid argument
mingw32-make: *** No rule to make target `"../../../Build.mak"'.  Stop.

The included file looks quite complex. Here are just the first 12 lines 
of it
!IFDEF CPU
LIBS = $(LIBS) bufferoverflowU.lib
CFLAGS = $(CFLAGS) -GS- -Zc:forScope
!ENDIF

!IFNDEF O
!IFDEF CPU
O=$(CPU)
!ELSE
O=O
!ENDIF
!ENDIF

I am not sure but I think make won't like the !IFDEF expressions?



More information about the CMake mailing list