From f95c55f26c0bade0d3229e3546d31ceeeb332e06 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 26 Feb 2015 23:06:58 -0500 Subject: [PATCH] Enet: ensure CMAKE_REQUIRED_LIBRARIES is empty. --- Externals/enet/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Externals/enet/CMakeLists.txt b/Externals/enet/CMakeLists.txt index ce6dc8ff42..93d9132d16 100644 --- a/Externals/enet/CMakeLists.txt +++ b/Externals/enet/CMakeLists.txt @@ -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)