mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +03:00
* 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:
parent
518a7cafd5
commit
1302bf41df
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user