mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 09:51:12 +00:00
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 <aardappel@gmail.com>
This commit is contained in:
parent
af4b99a1d7
commit
957e09d684
1 changed files with 1 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ endif()
|
|||
add_definitions(-DFLATBUFFERS_LOCALE_INDEPENDENT=$<BOOL:${FLATBUFFERS_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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue