summaryrefslogtreecommitdiff
path: root/tools
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 /tools
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 'tools')
-rw-r--r--tools/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index d5173ae..681ca55 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -6,6 +6,9 @@ ADD_LIBRARY (toolstuff STATIC common_write.c)
# 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 (ENABLE_RPMDB)
SET (SYSTEM_LIBRARIES ${RPMDB_LIBRARY} ${SYSTEM_LIBRARIES})
ENDIF (ENABLE_RPMDB)