summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-03-26 14:25:59 +0200
committerMichael Schroeder <mls@suse.de>2012-03-26 14:25:59 +0200
commit536bf52dbc4637141c8b0e391fcf988af673ac2c (patch)
treea449da99a61eb3d49a05bbdcc9789178121d92c7 /CMakeLists.txt
parentd4295440a1b7555d666884728d2939e7a24cc1ec (diff)
downloadlibsolv-536bf52dbc4637141c8b0e391fcf988af673ac2c.tar.gz
libsolv-536bf52dbc4637141c8b0e391fcf988af673ac2c.tar.bz2
libsolv-536bf52dbc4637141c8b0e391fcf988af673ac2c.zip
- implement support for xz/lzma compression
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 217361c..69497fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,8 @@ OPTION (ENABLE_HELIXREPO "Build with helix repository support?" OFF)
OPTION (ENABLE_DEBIAN "Build with debian database/repository support?" OFF)
OPTION (ENABLE_MDKREPO "Build with mandriva/mageia repository support?" OFF)
+OPTION (ENABLE_XZ_COMPRESSION "Build with xz/lzma compression support?" OFF)
+
#IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERISION} GREATER 2.4)
#ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERISION} GREATER 2.4)
@@ -134,7 +136,7 @@ TEST_BIG_ENDIAN (WORDS_BIGENDIAN)
# should create config.h with #cmakedefine instead...
FOREACH (VAR HAVE_STRCHRNUL HAVE_FOPENCOOKIE HAVE_FUNOPEN WORDS_BIGENDIAN
ENABLE_RPMDB ENABLE_RPMDB_PUBKEY ENABLE_RPMMD ENABLE_SUSEREPO ENABLE_COMPS
- ENABLE_HELIXREPO ENABLE_MDKREPO ENABLE_DEBIAN)
+ ENABLE_HELIXREPO ENABLE_MDKREPO ENABLE_DEBIAN ENABLE_XZ_COMPRESSION)
IF(${VAR})
ADD_DEFINITIONS (-D${VAR}=1)
SET (SWIG_FLAGS ${SWIG_FLAGS} -D${VAR})