From fd22c4e29a385e6c7e02663f240fd70b07e9c569 Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Mon, 22 Jul 2019 10:37:49 -0700 Subject: [PATCH] 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. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93c92c0dba..91d6e4220d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )