Fix CMake not finding getpagesize for Android 19
This commit is contained in:
parent
68b54c324e
commit
8fee85b013
@ -1,5 +1,6 @@
|
|||||||
cmake_minimum_required (VERSION 2.8.8)
|
cmake_minimum_required (VERSION 3.0)
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
|
include(CheckSymbolExists)
|
||||||
include(CheckLibraryExists)
|
include(CheckLibraryExists)
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
include(CheckTypeSize)
|
include(CheckTypeSize)
|
||||||
@ -231,7 +232,7 @@ if(HAVE_GETENTROPY)
|
|||||||
add_definitions(-DHAVE_GETENTROPY)
|
add_definitions(-DHAVE_GETENTROPY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_function_exists(getpagesize HAVE_GETPAGESIZE)
|
check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
|
||||||
if(HAVE_GETPAGESIZE)
|
if(HAVE_GETPAGESIZE)
|
||||||
add_definitions(-DHAVE_GETPAGESIZE)
|
add_definitions(-DHAVE_GETPAGESIZE)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user