diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-04 00:01:18 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-06-20 01:16:20 +0200 |
commit | da1af58e029b9ec31c05561cc11c227ff2d992d8 (patch) | |
tree | 0b7a577f738b1c23688c54f4a4fe5d6608b17da6 /dep/jemalloc | |
parent | 924be20642a2fc5adb8ff6c3d6def78aacd5ed1b (diff) |
Build: Moved CheckSymbolExists include to correct file
(cherry picked from commit 18fd59d965694b5cd0f62c011875a5d8beaac7e2)
Diffstat (limited to 'dep/jemalloc')
-rw-r--r-- | dep/jemalloc/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dep/jemalloc/CMakeLists.txt b/dep/jemalloc/CMakeLists.txt index fb68395a40b..42bc5fd51e4 100644 --- a/dep/jemalloc/CMakeLists.txt +++ b/dep/jemalloc/CMakeLists.txt @@ -8,9 +8,11 @@ # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +include(CheckSymbolExists) + if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT NOJEM) # We need to generate the jemalloc_def.h header based on platform-specific settings - CHECK_SYMBOL_EXISTS(MADV_FREE "sys/mman.h" HAVE_MADV_FREE) + check_symbol_exists(MADV_FREE "sys/mman.h" HAVE_MADV_FREE) if (PLATFORM EQUAL 32) set(JEM_SIZEDEF 2) |