]> Creatis software - gdcm.git/commitdiff
BUG: Fix build of gdcm on SunOS + gcc. Thanks for report by Jean Michel Rouet
authormalaterre <malaterre>
Wed, 12 Jan 2005 15:28:27 +0000 (15:28 +0000)
committermalaterre <malaterre>
Wed, 12 Jan 2005 15:28:27 +0000 (15:28 +0000)
src/CMakeLists.txt

index 57a8108..e37bf17 100644 (file)
@@ -76,9 +76,7 @@ ENDIF(APPLE)
 
 # Need nsl to resolve gethostbyname on SunOS-5.8 CC
 IF(CMAKE_SYSTEM MATCHES "SunOS.*")
-  IF(NOT CMAKE_COMPILER_IS_GNUCXX)
-    TARGET_LINK_LIBRARIES(gdcm nsl)
-  ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
+  TARGET_LINK_LIBRARIES(gdcm nsl)
 ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
 
 INSTALL_FILES(/include "\\.h$")