summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2010-06-08 17:55:22 +0200
committerMichael Schroeder <mls@suse.de>2010-06-08 17:58:11 +0200
commit64eb1c95abd71d930ed69b9deec18bdc2b68e053 (patch)
tree955c0a51cdb50869d055005c9764b46421703c32 /CMakeLists.txt
parentc3c9750311ff70e9d5fc332e46f46f1e46cc0c1f (diff)
downloadlibsolv-64eb1c95abd71d930ed69b9deec18bdc2b68e053.tar.gz
libsolv-64eb1c95abd71d930ed69b9deec18bdc2b68e053.tar.bz2
libsolv-64eb1c95abd71d930ed69b9deec18bdc2b68e053.zip
- link with all needed libraries, by Lorenzo Villani
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5fe259..24234db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,6 +55,16 @@ FIND_LIBRARY(RPMDB_LIBRARY NAMES rpmdb)
IF ( NOT RPMDB_LIBRARY )
FIND_LIBRARY(RPMDB_LIBRARY NAMES rpm)
ENDIF( NOT RPMDB_LIBRARY )
+FIND_LIBRARY(RPMIO_LIBRARY NAMES rpmio)
+IF ( RPMIO_LIBRARY )
+SET( RPMDB_LIBRARY ${RPMIO_LIBRARY} ${RPMDB_LIBRARY} )
+ENDIF ( RPMIO_LIBRARY )
+IF ( FEDORA )
+FIND_LIBRARY(DB_LIBRARY NAMES db)
+IF ( DB_LIBRARY )
+SET( RPMDB_LIBRARY ${DB_LIBRARY} ${RPMDB_LIBRARY} )
+ENDIF ( DB_LIBRARY )
+ENDIF ( FEDORA )
ENDIF ( NOT DEBIAN )
SET( PACKAGE "satsolver" )