From: Michael Schroeder Date: Wed, 23 Nov 2016 10:45:45 +0000 (+0100) Subject: Support a DB_INCLUDE_DIR variable X-Git-Tag: 0.6.25~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c43214c2e789247fec3aa7aa7e7acf7993f0c1;p=thirdparty%2Flibsolv.git Support a DB_INCLUDE_DIR variable --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d0dda5d..4aa03c2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)