Abort when --enable-jemalloc is given, but JeMalloc is not found

At the moment this also already aborts in this case - much later, with
an ugly error message.
This commit is contained in:
Johanna Amann 2019-07-22 10:37:49 -07:00
parent d24fb97b53
commit fd22c4e29a

View file

@ -152,6 +152,10 @@ endif ()
if (ENABLE_JEMALLOC)
find_package(JeMalloc)
if (NOT JEMALLOC_FOUND)
message(FATAL_ERROR "Could not find requested JeMalloc")
endif()
endif ()
if ( BISON_VERSION AND BISON_VERSION VERSION_LESS 2.5 )