From 2bb79e002b14c778ce6e1b407a7add95eeda4437 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Mon, 20 Dec 2021 10:54:24 +0300 Subject: [PATCH] Better detection of berkeleydb --- src/CMakeLists.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 78d5200..72aa181 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,8 +40,8 @@ if (NOT BerkeleyDB_INC) set(BerkeleyDB_INC ${BerkeleyDB_ROOT}/include) endif() -if (NOT EXISTS ${BerkeleyDB_ROOT}/include/db_cxx.h) - message(FATAL_ERROR "Unable to find db_cxx.h header file in ${BerkeleyDB_ROOT}/include directory") +if (NOT EXISTS ${BerkeleyDB_INC}/db_cxx.h) + message(FATAL_ERROR "Unable to find db_cxx.h header file in ${BerkeleyDB_INC} directory") endif() # Set default library path for berkeley db -- 1.7.1