Skip to content

Commit

Permalink
fix: add missing include in CMakeLists #942 (#1285)
Browse files Browse the repository at this point in the history
* fix: missing include file for cmake function

* fix: using newer version of check include file

---------

Co-authored-by: rbevin777 <[email protected]>
  • Loading branch information
rbevin777 and rbevin777 authored Jul 19, 2023
1 parent 518a7ca commit 1302bf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client_server/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
include(CheckIncludeFile)

if(WIN32)
check_include_file(winsock2.h WINSOCK_HEADER)
CHECK_INCLUDE_FILE(winsock2.h WINSOCK_HEADER)
else()
check_include_file(arpa/inet.h ARPA_HEADERS)
CHECK_INCLUDE_FILE(arpa/inet.h ARPA_HEADERS)
endif()

if(ARPA_HEADERS OR WINSOCK_HEADER)
Expand Down

0 comments on commit 1302bf4

Please sign in to comment.