Commit 687fcd79 authored by Eric Berge's avatar Eric Berge

Add -lsocket for libcmsys.a build on SunOS

Without this the linking of code using
Source/kwsys/SystemInformation.cxx will
have undefined Symbols on Solaris 11.
parent 95a7e234
......@@ -818,6 +818,9 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
# for symbol lookup using dladdr
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ${CMAKE_DL_LIBS})
ENDIF()
IF (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} socket)
ENDIF()
ENDIF()
ENDIF()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment