Set JEMALLOC_FOUND when on FreeBSD (suggested by Tim Wojtulewicz)

This commit is contained in:
Craig Leres 2021-12-03 15:23:50 -08:00
parent 1778bc5fa8
commit 47a267130b

View file

@ -294,12 +294,16 @@ if ( NOT BIFCL_EXE_PATH )
add_subdirectory(auxil/bifcl)
endif ()
if (ENABLE_JEMALLOC AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
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")
endif()
endif()
endif ()
if ( BISON_VERSION AND BISON_VERSION VERSION_LESS 2.5 )