summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2022-03-06 07:11:10 -0500
committerAllen Winter <allen.winter@kdab.com>2022-03-06 07:11:10 -0500
commitcd724c16f276b1b7a1859634f8dba4e2250245d9 (patch)
treee8dfef97298dc5b24f1727e9b4cc7358a8f3488a
parent98b9ae7dee369e5797ed5cbfd1cd31d04b46fa16 (diff)
downloadlibical-git-cd724c16f276b1b7a1859634f8dba4e2250245d9.tar.gz
cmake/modules/FindBerkeleyDB.cmake - set BerkeleyDB_LIBRARIES
make sure BerkeleyDB_LIBRARIES is set
-rw-r--r--cmake/modules/FindBerkeleyDB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindBerkeleyDB.cmake b/cmake/modules/FindBerkeleyDB.cmake
index 26d6caf0..8acffb36 100644
--- a/cmake/modules/FindBerkeleyDB.cmake
+++ b/cmake/modules/FindBerkeleyDB.cmake
@@ -110,6 +110,7 @@ endif()
# The actual returned/output version variable (the others can be used if needed)
set(BerkeleyDB_VERSION "${BerkeleyDB_VERSION_MAJOR}.${BerkeleyDB_VERSION_MINOR}.${BerkeleyDB_VERSION_PATCH}")
+set(BerkeleyDB_LIBRARIES "")
# Finds the target library for berkeley db, since they all follow the same naming conventions
macro(findpackage_berkeleydb_get_lib _BERKELEYDB_OUTPUT_VARNAME _TARGET_BERKELEYDB_LIB)
# Different systems sometimes have a version in the lib name...
@@ -140,7 +141,6 @@ macro(findpackage_berkeleydb_get_lib _BERKELEYDB_OUTPUT_VARNAME _TARGET_BERKELEY
endif()
endmacro()
-list(APPEND BerkeleyDB_LIBRARIES)
# Find and set the paths of the specific library to the variable
findpackage_berkeleydb_get_lib(BerkeleyDB_LIBRARY "db")
# NOTE: Windows doesn't have a db_cxx lib, but instead compiles the cxx code into the "db" lib