Skip to content

Commit 1302bf4

Browse files
rbevin777rbevin777
and
rbevin777
authored
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 <[email protected]>
1 parent 518a7ca commit 1302bf4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

client_server/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
include(CheckIncludeFile)
2+
13
if(WIN32)
2-
check_include_file(winsock2.h WINSOCK_HEADER)
4+
CHECK_INCLUDE_FILE(winsock2.h WINSOCK_HEADER)
35
else()
4-
check_include_file(arpa/inet.h ARPA_HEADERS)
6+
CHECK_INCLUDE_FILE(arpa/inet.h ARPA_HEADERS)
57
endif()
68

79
if(ARPA_HEADERS OR WINSOCK_HEADER)

0 commit comments

Comments
 (0)