From 05e79d01db84ec6624953f2f43e447ebc8d03000 Mon Sep 17 00:00:00 2001 From: Bheesham Persaud <171007+bheesham@users.noreply.github.com> Date: Sat, 18 Feb 2023 16:10:50 -0500 Subject: [PATCH] build: Use CXX symbol checking for libutp (#4909) --- cmake/FindUTP.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindUTP.cmake b/cmake/FindUTP.cmake index bc19e214f..d86e455fa 100644 --- a/cmake/FindUTP.cmake +++ b/cmake/FindUTP.cmake @@ -20,7 +20,7 @@ find_library(UTP_LIBRARY HINTS ${_UTP_LIBDIR}) if(UTP_INCLUDE_DIR AND UTP_LIBRARY) - include(CheckSymbolExists) + include(CheckCXXSymbolExists) set(_UTP_FUNCS utp_check_timeouts @@ -53,7 +53,7 @@ if(UTP_INCLUDE_DIR AND UTP_LIBRARY) foreach(_UTP_FUNC IN LISTS _UTP_FUNCS) string(MAKE_C_IDENTIFIER "HAVE_${_UTP_FUNC}" _UTP_FUNC_VAR) string(TOUPPER "${_UTP_FUNC_VAR}" _UTP_FUNC_VAR) - check_symbol_exists(${_UTP_FUNC} libutp/utp.h ${_UTP_FUNC_VAR}) + check_cxx_symbol_exists(${_UTP_FUNC} libutp/utp.h ${_UTP_FUNC_VAR}) if(NOT ${_UTP_FUNC_VAR}) unset(UTP_INCLUDE_DIR CACHE) unset(UTP_LIBRARY CACHE)