Skip to content
Snippets Groups Projects
Commit 9221237d authored by Mathieu Deltorre's avatar Mathieu Deltorre
Browse files

PB link sun os undefined symbol gesthostbyname

parent d27ab745
Branches
Tags
No related merge requests found
......@@ -118,6 +118,13 @@ ENDIF(CMAKE_COMPILER_IS_GNUCXX)
# + be used by external code like contributions to the insight journal
ADD_EXECUTABLE(itkTestDriver itkTestDriver.cxx)
TARGET_LINK_LIBRARIES(itkTestDriver ITKIO)
# Need nsl to resolve gethostbyname on SunOS-5.8
# and socket also
IF(CMAKE_SYSTEM MATCHES "SunOS.*")
TARGET_LINK_LIBRARIES(itkTestDriver socket nsl)
ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
IF(NOT ITK_INSTALL_NO_DEVELOPMENT)
INSTALL(TARGETS itkTestDriver
RUNTIME DESTINATION ${ITK_INSTALL_BIN_DIR_CM24} COMPONENT Development)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment