[Insight-developers] Quick cmake question
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Thu Jul 8 09:23:39 EDT 2010
Le 8 juil. 10 à 15:15, Richard Beare a écrit :
> 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
>
isn't it equivalent to
execute_process( COMMAND ln -sf ${a} ${FPATH}/${b} )
?
> 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
>>>
>>
>>
> _______________________________________________
> 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
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100708/c4c3dc5d/attachment.pgp>
More information about the Insight-developers
mailing list