summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-04-02 13:41:10 +0200
committerMichael Schroeder <mls@suse.de>2012-04-02 13:41:10 +0200
commitd1275e7fcce9d4fc23f418d3b841d8940d2cc163 (patch)
treef5d903e463d3c317c29897e7ffd46663e95a3e9b /bindings
parentab13d4e340f60848879a06b060d0bbe702d76092 (diff)
downloadlibsolv-d1275e7fcce9d4fc23f418d3b841d8940d2cc163.tar.gz
libsolv-d1275e7fcce9d4fc23f418d3b841d8940d2cc163.tar.bz2
libsolv-d1275e7fcce9d4fc23f418d3b841d8940d2cc163.zip
- make sure to link against the lzma library if ENABLE_LZMA_COMPRESSION is set
Diffstat (limited to 'bindings')
-rw-r--r--bindings/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 1fe3061..b6b9a27 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -1,5 +1,8 @@
# as we link with --as-needed we do not get bogus dependencies
SET (SYSTEM_LIBRARIES ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
+IF (ENABLE_LZMA_COMPRESSION)
+SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${LZMA_LIBRARY})
+ENDIF (ENABLE_LZMA_COMPRESSION)
IF (NOT DEBIAN)
SET (SYSTEM_LIBRARIES ${RPMDB_LIBRARY} ${SYSTEM_LIBRARIES})
ENDIF (NOT DEBIAN)