[Insight-developers] Tcl failure on MacOSX-WrapITK

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sat Feb 26 05:51:24 EST 2011


I have the same behavior on linux. I guess this is the expected  
behavior.
I've pushed a fix.

Gaëtan




Le 25 févr. 11 à 21:16, Gaëtan Lehmann a écrit :

>
> Le 22 févr. 11 à 23:09, Brad King a écrit :
>
>> The modern way to solve this problem is to use the add_test(NAME)  
>> mode
>> introduced in CMake 2.8.  It supports "generator expressions" like  
>> this:
>>
>> add_test(NAME mytest COMMAND itkTestDriver ...
>>                              $<TARGET_FILE:itkwish> ...)
>>
>> Each CMake generator will substitute the proper location of the  
>> file in
>> place of the $<> expression (hence the name "generator expression").
>
>
> Brad,
>
> Unfortunately, the expression generator doesn't seem to work  
> properly on Solaris 10, with either cmake 2.8.3 or 2.8.4.
>
> From this add_test call
>
>  add_test(NAME ${name}
>    COMMAND "${ITK_TEST_DRIVER}"
>    --add-before-env-with-sep TCLLIBPATH "${WrapITK_BINARY_DIR}/ 
> Languages/Tcl/$<CONFIGURATION>" " "
>    --add-before-libpath "${WrapITK_BINARY_DIR}/lib/$<CONFIGURATION>"
>    --add-before-libpath "${ITK_DIR}/bin/$<CONFIGURATION>"
>    $<TARGET_FILE:itkwish>
>    ${ARGN}
>    )
>
> I get this command:
>
>  59: Test command: /home/papha/glehmann/src/tests/WrapITK-gcc32/bin/ 
> itkTestDriver "--add-before-env-with-sep" "TCLLIBPATH" "/home/papha/ 
> glehmann/src/tests/WrapITK-gcc32/Wrapping/WrapITK/Languages/Tcl/ 
> Release" " " "--add-before-libpath" "/home/papha/glehmann/src/tests/ 
> WrapITK-gcc32/Wrapping/WrapITK/lib/Release" "--add-before-libpath" "/ 
> home/papha/glehmann/src/tests/WrapITK-gcc32/bin/Release" "/home/ 
> papha/glehmann/src/tests/WrapITK-gcc32/bin/itkwish" "/home/papha/ 
> glehmann/src/tests/ITK/Wrapping/WrapITK/Languages/Tcl/Tests/ 
> BinaryErodeImageFilter.tcl" "/home/papha/glehmann/src/tests/ITK/ 
> Wrapping/WrapITK/images/2th_cthead1.png"  
> "BinaryErodeImageFilter.png" "--compare"  
> "BinaryErodeImageFilter.png" "/home/papha/glehmann/src/tests/ITK/ 
> Wrapping/WrapITK/images/BinaryErodeImageFilter.png"
>
> Note that $<CONFIGURATION> is replaced by Release while it shouldn't.
>
> Am I doing something wrong?
> Could you tell me where I should look to fix the expression  
> generator on that system, if it doesn't behave properly?
>
> Thanks,
>
> Gaëtan
>
>
> -- 
> 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
>
> _______________________________________________
> 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/20110226/7dc16e64/attachment.pgp>


More information about the Insight-developers mailing list