[CMake] execute_process() - problems on windows (newbie)

Rolf Eike Beer eike at sf-mail.de
Tue Aug 3 01:26:32 EDT 2010


Am Tuesday 03 August 2010 schrieb Robert Valkenburg:
> Hi,
> 
> This could
well be a silly question. I'm having some issues with
> execute_process() on
windows platforms.  Below is a small test program with
> output on windows
and linux.  The only command i can get to work on windows
> is "hostname",
everything else i've tried gives the output below (internal
> and external
dos commands, and other commands such as Matlabs mexext). All
> the commands
work properly in the dos command shell.  Under unix it all
> seems to work
as expected.

The shell buildins on Windows you need to call by "cmd.exe /c
command" or something like this.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100803/b6487bd6/attachment.pgp>


More information about the CMake mailing list