From 957e09d6847ae99f41685f3fcd99bd3ad78dc610 Mon Sep 17 00:00:00 2001 From: vzjc <121252900+vzjc@users.noreply.github.com> Date: Tue, 12 Aug 2025 02:11:14 -0400 Subject: [PATCH] CMakeLists: include(CheckSymbolExists) so check_symbol_exists() will work (#8580) CMake 3.6 and earlier included this implicitly. Newer versions require it to be explicit. Co-authored-by: Wouter van Oortmerssen --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7038f89d..c9bb2fcac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,7 @@ endif() add_definitions(-DFLATBUFFERS_LOCALE_INDEPENDENT=$) if(NOT WIN32) + include(CheckSymbolExists) check_symbol_exists(realpath "stdlib.h" HAVE_REALPATH) if(NOT HAVE_REALPATH) add_definitions(-DFLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION)