fix: add missing include in CMakeLists #942 (#1285)

* fix: missing include file for cmake function

* fix: using newer version of check include file

---------

Co-authored-by: rbevin777 <rbevin7@gmail.com>
This commit is contained in:
Ryan Bevin 2023-07-19 08:34:19 +01:00 committed by GitHub
parent 518a7cafd5
commit 1302bf41df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,9 @@
include(CheckIncludeFile)
if(WIN32) if(WIN32)
check_include_file(winsock2.h WINSOCK_HEADER) CHECK_INCLUDE_FILE(winsock2.h WINSOCK_HEADER)
else() else()
check_include_file(arpa/inet.h ARPA_HEADERS) CHECK_INCLUDE_FILE(arpa/inet.h ARPA_HEADERS)
endif() endif()
if(ARPA_HEADERS OR WINSOCK_HEADER) if(ARPA_HEADERS OR WINSOCK_HEADER)