[Insight-developers] Quick cmake question

Richard Beare richard.beare at gmail.com
Thu Jul 8 09:15:18 EDT 2010


Hi,
I'm trying to create symbolic links using only relative paths, hence
the cd command. Won't there be a separate process for each
execute_process below? Looks like the working directory option is the
thing I need if using the execute_process command

On Thu, Jul 8, 2010 at 10:53 PM, Karthik Krishnan
<karthik.krishnan at kitware.com> wrote:
> 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
>>
>
>


More information about the Insight-developers mailing list