[Insight-developers] Quick cmake question
Karthik Krishnan
karthik.krishnan at kitware.com
Thu Jul 8 08:53:02 EDT 2010
Drop the "(" and the quotes.. The following should work..
execute_process( COMMAND cd ${FPATH} )
execute_process( COMMAND ln -sf ${a} ${b} )
On Thu, Jul 8, 2010 at 4:51 PM, Dave Partyka <dave.partyka at kitware.com>wrote:
> 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
>>
>
>
> _______________________________________________
> 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/b6544740/attachment.htm>
More information about the Insight-developers
mailing list