Build: Moved CheckSymbolExists include to correct file

(cherry picked from commit 18fd59d965)
This commit is contained in:
Shauren
2024-06-04 00:01:18 +02:00
parent 4bc23a0753
commit fb8a89162e
2 changed files with 3 additions and 3 deletions

View File

@@ -8,8 +8,6 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
include(CheckSymbolExists)
set(FMT_HEADERS
include/fmt/args.h
include/fmt/chrono.h

View File

@@ -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)