[CMake] problem with SUBDIRS and MingGW-make

Axel Wachtler axel.wachtler at gmx.de
Fri Jul 1 16:23:15 EDT 2005


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.

A workaround would be, if the makefile generator writes:

	@$(MAKE) -C ../../MyApp  clean

Best Regards

Axel

-- 
------------------------------------------------------------------
Axel Wachtler
Mail:        axel.wachtler at gmx.de
Fingerprint: FA2C 4FB1 AC18 5FA3 F4F1 1114 3F38 E0DF 8C3A DC95
Public Key:  http://www.keyserver.net
------------------------------------------------------------------
Was man heute Rap-Musik nennt, hieß früher Stottern und war heilbar...



More information about the CMake mailing list