]> 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 57a810889cceb7d32e38b86694e890cf67b7078c..e37bf17a9782220e0c7e67532c9cee389d5b3130 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$")