KWSys 2018-10-19 (c2f29d2e)

Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit c2f29d2e929e58e36b4986d3ff5364a0d825cfca (master).

Upstream Shortlog
-----------------

Ben Boeckel (1):
      a5caf8a4 cmake: support an alias target

Modestas Vainius (1):
      162b3ed7 SystemInformation: Fix compilation on GNU/{kFreeBSD,Hurd}
This commit is contained in:
KWSys Upstream 2018-10-19 10:02:23 -04:00 committed by Brad King
parent b6a689c6f8
commit 43cb257648
2 changed files with 6 additions and 1 deletions

View File

@ -35,6 +35,7 @@
# target_link_libraries. Because of how interface
# properties propagate, this target is not suitable
# for use with PUBLIC or INTERFACE linking.
# KWSYS_ALIAS_TARGET = The name of an alias target to create to the actual target.
#
# Example:
#
@ -887,6 +888,9 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
ADD_LIBRARY(${KWSYS_TARGET_INTERFACE} ${KWSYS_LIBRARY_TYPE}
${KWSYS_C_SRCS} ${KWSYS_CXX_SRCS})
ENDIF()
if (KWSYS_ALIAS_TARGET)
add_library(${KWSYS_ALIAS_TARGET} ALIAS ${KWSYS_TARGET_INTERFACE})
endif ()
SET_TARGET_PROPERTIES(${KWSYS_TARGET_OBJECT} PROPERTIES
C_CLANG_TIDY ""
CXX_CLANG_TIDY ""

View File

@ -112,7 +112,8 @@ typedef int siginfo_t;
# endif
#endif
#if defined(__linux) || defined(__sun) || defined(_SCO_DS)
#if defined(__linux) || defined(__sun) || defined(_SCO_DS) || \
defined(__GLIBC__) || defined(__GNU__)
# include <netdb.h>
# include <netinet/in.h>
# include <sys/socket.h>