[Insight-developers] MetaIO fix for (open)solaris
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Thu Jun 11 16:16:27 EDT 2009
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
--
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/20090611/5bba1651/attachment.pgp>
More information about the Insight-developers
mailing list