diff options
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fde8cf..5b5ca8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,5 +1,6 @@ | |||
1 | cmake_minimum_required (VERSION 2.8.8) | 1 | cmake_minimum_required (VERSION 3.0) |
2 | include(CheckFunctionExists) | 2 | include(CheckFunctionExists) |
3 | include(CheckSymbolExists) | ||
3 | include(CheckLibraryExists) | 4 | include(CheckLibraryExists) |
4 | include(CheckIncludeFiles) | 5 | include(CheckIncludeFiles) |
5 | include(CheckTypeSize) | 6 | include(CheckTypeSize) |
@@ -229,7 +230,7 @@ if(HAVE_GETENTROPY) | |||
229 | add_definitions(-DHAVE_GETENTROPY) | 230 | add_definitions(-DHAVE_GETENTROPY) |
230 | endif() | 231 | endif() |
231 | 232 | ||
232 | check_function_exists(getpagesize HAVE_GETPAGESIZE) | 233 | check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE) |
233 | if(HAVE_GETPAGESIZE) | 234 | if(HAVE_GETPAGESIZE) |
234 | add_definitions(-DHAVE_GETPAGESIZE) | 235 | add_definitions(-DHAVE_GETPAGESIZE) |
235 | endif() | 236 | endif() |