[CMake] problem with SUBDIRS and MingGW-make

Brad King brad.king at kitware.com
Thu Jul 7 10:42:52 EDT 2005


Axel Wachtler wrote:
> Today I figured out what happens really with mingw and cmake
> generated makefiles.
> 
> It is not the ; - it is the wrong argument for the cd-command
> from command.com
> 
> @cd c:/src/MyApp
> 
> has two incompatibilities, first the drive is not supported,
> second the / is not supported.

Please report this as a bug here:

http://www.cmake.org/Bug

> Suggestion for fixing the Makefile generator:
> if mingw is present, generate make -C c:/src/MyApp (clean|all|install)
> 
> Also cmake should have something like a -C option (-C is already in use)
> for easy workaround this cd - issue with the Mingw system.

See the "cmake -E chdir" option (run "cmake -E" for help).  You can use 
it from custom commands to change to a directory and run an executable.

-Brad


More information about the CMake mailing list