Code: Select all
$ 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)