From 01e968887c36ebcd04c31556075bae9826bc4a08 Mon Sep 17 00:00:00 2001 From: John Carlson Date: Wed, 16 Apr 2025 17:22:04 -0400 Subject: [PATCH] CMakeLists: include(CheckSymbolExists) so check_symbol_exists() will work CMake 3.6 and earlier included this implicitly. Newer versions require it to be explicit. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7038f89d73..c9bb2fcac5a 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)