From 1302bf41df2cdb53d3292076950414df04fde533 Mon Sep 17 00:00:00 2001 From: Ryan Bevin Date: Wed, 19 Jul 2023 08:34:19 +0100 Subject: [PATCH] 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 --- client_server/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client_server/CMakeLists.txt b/client_server/CMakeLists.txt index 66a6b043..c02e6185 100644 --- a/client_server/CMakeLists.txt +++ b/client_server/CMakeLists.txt @@ -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)