From 4bdc2934dc50db83a8979c04548c0bb619be5c8f Mon Sep 17 00:00:00 2001 From: tux3 Date: Fri, 14 Dec 2018 14:38:35 +0100 Subject: Fix CMake not finding getpagesize for Android 19 --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 549849f..395fe92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ -cmake_minimum_required (VERSION 2.8.8) +cmake_minimum_required (VERSION 3.0) include(CheckFunctionExists) +include(CheckSymbolExists) include(CheckLibraryExists) include(CheckIncludeFiles) include(CheckTypeSize) @@ -225,7 +226,7 @@ if(HAVE_GETENTROPY) add_definitions(-DHAVE_GETENTROPY) endif() -check_function_exists(getpagesize HAVE_GETPAGESIZE) +check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) if(HAVE_GETPAGESIZE) add_definitions(-DHAVE_GETPAGESIZE) endif() -- cgit v1.2.3-55-g6feb