[Insight-developers] MetaIO fix for (open)solaris

Julien Jomier julien.jomier at kitware.com
Thu Jun 11 16:28:21 EDT 2009


Gaetan,

I'm going to commit the fix. You shouldn't be able to check it in ITK 
directly (it has to go in an intermediate repository). Please post all 
bug fix requests for MetaIO on this mailing list.

Thanks again,
Julien

Gaëtan Lehmann wrote:
> 
> Hi,
> 
> I'd like to commit a fix to MetaIO which link the lib to some required 
> lib on solaris, but as it is shared between several projects, I'm not 
> sure how it should be done.
> The fix comes from Utilities/gdcm/src/CMakeLists.txt
> 
> Index: Utilities/MetaIO/CMakeLists.txt
> ===================================================================
> RCS file: /cvsroot/Insight/Insight/Utilities/MetaIO/CMakeLists.txt,v
> retrieving revision 1.47
> diff -u -r1.47 CMakeLists.txt
> --- Utilities/MetaIO/CMakeLists.txt     13 May 2008 22:43:57 -0000      
> 1.47
> +++ Utilities/MetaIO/CMakeLists.txt     11 Jun 2009 20:11:52 -0000
> @@ -54,6 +54,12 @@
> 
>  INCLUDE_REGULAR_EXPRESSION("^.*$")
> 
> +# Need nsl to resolve gethostbyname on SunOS-5.8
> +# and socket also
> +IF(CMAKE_SYSTEM MATCHES "SunOS.*")
> +  TARGET_LINK_LIBRARIES(${METAIO_NAMESPACE} socket nsl)
> +ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
> +
>  IF(METAIO_FOR_VTK)
>    IF(BUILD_SHARED_LIBS)
>      ADD_DEFINITIONS(-Dvtkmetaio_BUILD_SHARED_LIBS)
> 
> Can I just check it in?
> 
> Regards,
> 
> Gaëtan
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.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