Re: [CMake] cd before add custom command

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 3 03:52:06 EDT 2005


> Von: David Somers <dsomers at omz13.com> 
>  
> When a command is invoked through ADD_CUSTOM_COMMAND, is it possible to 
> change the current directory *before* the command is invoked? (I have 
> need to run some programs and these must be run in specific directories 
> - they can't simply be run elsewhere and passed the working dircetory 
> as a parameter). 
>  
> At the moment I'm applying bit of fudge and instead of running the 
> custom command directly per se, its actually running a bash script 
> which does a cd before running the actual command. 
 
Same here. Having an option "WORKING_DIRECTORY" or something link this 
would be nice. 
 
Bye 
Alex 
 

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++


More information about the CMake mailing list