mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Make FreeBSD more flexible, don't look for jemalloc unless we were
given a specific path for it.
This commit is contained in:
parent
47a267130b
commit
8f2ac836f8
1 changed files with 12 additions and 6 deletions
|
@ -296,13 +296,19 @@ endif ()
|
|||
|
||||
if (ENABLE_JEMALLOC)
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
set(JEMALLOC_FOUND true)
|
||||
else ()
|
||||
find_package(JeMalloc)
|
||||
|
||||
if (NOT JEMALLOC_FOUND)
|
||||
message(FATAL_ERROR "Could not find requested JeMalloc")
|
||||
if (DEFINED ${JEMALLOC_ROOT_DIR})
|
||||
# Look for jemalloc at a specific path
|
||||
find_package(JeMalloc)
|
||||
else()
|
||||
# jemalloc is in the base system
|
||||
set(JEMALLOC_FOUND true)
|
||||
endif()
|
||||
else()
|
||||
find_package(JeMalloc)
|
||||
endif()
|
||||
|
||||
if (NOT JEMALLOC_FOUND)
|
||||
message(FATAL_ERROR "Could not find requested JeMalloc")
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue