Merge pull request #2137 from waddlesplash/patch-1

Enet: ensure CMAKE_REQUIRED_LIBRARIES is empty.
This commit is contained in:
Markus Wick 2015-02-27 19:37:47 +01:00
commit 60591f51e1
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ check_function_exists("gethostbyaddr_r" HAS_GETHOSTBYADDR_R)
check_function_exists("inet_pton" HAS_INET_PTON)
check_function_exists("inet_ntop" HAS_INET_NTOP)
check_struct_has_member("struct msghdr" "msg_flags" "sys/types.h;sys/socket.h" HAS_MSGHDR_FLAGS)
set(CMAKE_REQUIRED_LIBRARIES "")
set(CMAKE_EXTRA_INCLUDE_FILES "sys/types.h" "sys/socket.h")
check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY)
unset(CMAKE_EXTRA_INCLUDE_FILES)