[Insight-developers] Quick cmake question

Dave Partyka dave.partyka at kitware.com
Thu Jul 8 07:21:27 EDT 2010


I am assuming you're using execute_process? If so you can set the
WORKING_DIRECTORY argument instead of trying to cd in the command. See

http://cmake.org/cmake/help/cmake-2-8-docs.html#command:execute_process


On Wed, Jul 7, 2010 at 11:22 PM, Richard Beare <richard.beare at gmail.com>wrote:

> Hi,
> I know this isn't the right mailing list, but there is bound to be
> someone who can answer this question.
>
> I'm trying to figure out the correct escaping sequence for a shell
> command. I want to execute
>
> (cd ${FPATH} ; ln -sf ${a} ${b} )
>
> where FPATH, a and b are CMake variables.
>
> I'm trying various combinations of
>
> COMMAND " (cd ${FPATH} ; ln -sf ${a} ${b} ) "
>
> and so on, but nothing seems quite right.
>
> Thanks
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100708/d5f181b5/attachment.htm>


More information about the Insight-developers mailing list