aboutsummaryrefslogtreecommitdiffstats
path: root/ll-database-binding/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'll-database-binding/src/CMakeLists.txt')
-rw-r--r--ll-database-binding/src/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/ll-database-binding/src/CMakeLists.txt b/ll-database-binding/src/CMakeLists.txt
index 904b857..cea11a3 100644
--- a/ll-database-binding/src/CMakeLists.txt
+++ b/ll-database-binding/src/CMakeLists.txt
@@ -1,9 +1,14 @@
PROJECT_TARGET_ADD(ll-database-binding)
-find_package(BerkeleyDB REQUIRED)
+find_package(GDBM)
+if(DB_FOUND)
+ add_definitions(-DUSE_GDBM)
+else(DB_FOUND)
+ find_package(BerkeleyDB REQUIRED)
+endif(DB_FOUND)
include_directories(${DB_INCLUDE_DIR})
-add_library(ll-database-binding MODULE ll-database-binding.c utils.h)
+add_library(ll-database-binding MODULE ll-database-binding.c)
target_link_libraries(ll-database-binding ${DB_LIBRARY})
set_target_properties(ll-database-binding PROPERTIES