Skip to content
Snippets Groups Projects
Commit 687fcd79 authored by Eric Berge's avatar Eric Berge
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment