]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Support a DB_INCLUDE_DIR variable
authorMichael Schroeder <mls@suse.de>
Wed, 23 Nov 2016 10:45:45 +0000 (11:45 +0100)
committerMichael Schroeder <mls@suse.de>
Wed, 23 Nov 2016 10:45:45 +0000 (11:45 +0100)
CMakeLists.txt

index 2d0dda5dd95c4549e55561c7fe2a710f4f047d58..4aa03c2afc56809d89e05acb466d586b83e12a5d 100644 (file)
@@ -207,6 +207,9 @@ IF (ENABLE_RPMDB)
     IF (DB_LIBRARY)
       SET (RPMDB_LIBRARY ${DB_LIBRARY} ${RPMDB_LIBRARY})
     ENDIF (DB_LIBRARY)
+    IF (DB_INCLUDE_DIR)
+      INCLUDE_DIRECTORIES (${DB_INCLUDE_DIR})
+    ENDIF (DB_INCLUDE_DIR)
   ENDIF (NOT HAVE_RPM_DB_H)
   INCLUDE (CheckLibraryExists)
   CHECK_LIBRARY_EXISTS(rpmio pgpDigGetParams "" HAVE_PGPDIGGETPARAMS)