[CMake] problem with SUBDIRS and MingGW-make

Cesar Rabak csrabak at yahoo.com.br
Fri Jul 1 21:32:15 EDT 2005


--- Axel Wachtler <axel.wachtler at gmx.de> escreveu:

> Hallo all,
> 
> Environment: cmake 2.0.5; mingw; windwos 2000;
> 
> I use a Top-Level CmakeLists.txt file, which has
> a statement:
> 
>    SUBDIRS(../../MyApp ../../MyApp1 )
> 
> The generated GNU-Makefile contains for the
> subdirectories
> for the "clean" and other (e.g. dependency) targets
> rules like:
> 
> clean__MyApp:
> 	@cd ../../MyApp; $(MAKE) clean
> 
> The problem with MinGW-make is that it does not
> handle the ";" correct, so the "$(MAKE) clean" is
> not executed in ../../MyApp.

I'm afraid your description of the cause is somewhat
incorrect:

It is not make that does not handle well the ';' but
rather the command shell you are using.

Did you try a unixy shell port to check this?

The root problem IMHO is that for MingW the only
option is "Unix Makefile" whereas some checks on the
platform's OS could be used to produce Makefiles with
the more amenable syntax you propose.


__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger 
http://br.download.yahoo.com/messenger/ 


More information about the CMake mailing list