mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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,15 +296,21 @@ endif ()
|
||||||
|
|
||||||
if (ENABLE_JEMALLOC)
|
if (ENABLE_JEMALLOC)
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
|
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)
|
set(JEMALLOC_FOUND true)
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
find_package(JeMalloc)
|
find_package(JeMalloc)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT JEMALLOC_FOUND)
|
if (NOT JEMALLOC_FOUND)
|
||||||
message(FATAL_ERROR "Could not find requested JeMalloc")
|
message(FATAL_ERROR "Could not find requested JeMalloc")
|
||||||
endif()
|
endif()
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
|
||||||
|
|
||||||
if ( BISON_VERSION AND BISON_VERSION VERSION_LESS 2.5 )
|
if ( BISON_VERSION AND BISON_VERSION VERSION_LESS 2.5 )
|
||||||
set(MISSING_PREREQS true)
|
set(MISSING_PREREQS true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue