diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-23 12:48:25 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-26 15:49:14 +0200 |
commit | 24ad9b325f2d277864e3a75931137b93dd75cd03 (patch) | |
tree | 2b824aad8624a30a958c8062e6876204bd805230 /ftparchive/CMakeLists.txt | |
parent | 8265d6c8fdc2dd835d9cf2a47af13461fa421389 (diff) |
CMake: Handle Berkeley DB on FreeBSD
The BSD systems still ship their own db.h with a historical
BSD implementation, which is preferred by CMake, as it searches
its default path first. We thus have to disable the DEFAULT_PATH
for the search, unfortunately. We also need to pass the correct
include directory to the target.
Furthermore, on FreeBSD the library is called db-<VERSION>, so
let's add db-5 to the list of allowed names.
Gbp-Dch: ignore
Diffstat (limited to 'ftparchive/CMakeLists.txt')
-rw-r--r-- | ftparchive/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ftparchive/CMakeLists.txt b/ftparchive/CMakeLists.txt index 1e1dc36ca..799fd7335 100644 --- a/ftparchive/CMakeLists.txt +++ b/ftparchive/CMakeLists.txt @@ -1,3 +1,4 @@ +include_directories(${BERKELEY_DB_INCLUDE_DIRS}) # Create the executable tasks file(GLOB_RECURSE source "*.cc") add_executable(apt-ftparchive ${source}) |