DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2017-05-29, 10:36

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue, 2015-08-04, 16:08 
Offline

Joined: Wed, 2014-02-19, 14:31
Posts: 18
libnsl is not present on Mac and most (all?) of its API is in libc. The following only links libnsl for platforms other than APPLE:

Code:
$ git diff
diff --git a/CMake/FindWrap.cmake b/CMake/FindWrap.cmake
index 1567724..9dc3430 100644
--- a/CMake/FindWrap.cmake
+++ b/CMake/FindWrap.cmake
@@ -21,7 +21,10 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(WRAP REQUIRED_VARS WRAP_LIBRARY WRAP_INCLUDE_D
 
 # Copy the result to output variables
 IF(WRAP_FOUND)
-  SET(WRAP_LIBRARIES ${WRAP_LIBRARY} nsl)
+  SET(WRAP_LIBRARIES ${WRAP_LIBRARY})
+  IF(NOT APPLE)
+    LIST(APPEND WRAP_LIBRARIES nsl)
+  ENDIF(NOT APPLE)
   SET(WRAP_INCLUDE_DIRS ${WRAP_INCLUDE_DIR})
 ELSE(WRAP_FOUND)
   SET(WRAP_LIBS)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group