diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:51 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:51 +0900 |
commit | f078975d65d0cace665590f3cf60025e6f2c7a0a (patch) | |
tree | d5c4e22f5738c33a4b49ec6517e814297b015393 /CMakeLists.txt | |
parent | d4334b3ee7ce4f5c736d3bda979388a87ba7aef3 (diff) | |
download | libsolv-f078975d65d0cace665590f3cf60025e6f2c7a0a.tar.gz libsolv-f078975d65d0cace665590f3cf60025e6f2c7a0a.tar.bz2 libsolv-f078975d65d0cace665590f3cf60025e6f2c7a0a.zip |
Imported Upstream version 0.7.4upstream/0.7.4
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1deef57..ab385f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ OPTION (ENABLE_MDKREPO "Build with mandriva/mageia repository support?" OFF) OPTION (ENABLE_ARCHREPO "Build with archlinux repository support?" OFF) OPTION (ENABLE_CUDFREPO "Build with cudf repository support?" OFF) OPTION (ENABLE_HAIKU "Build with Haiku package support?" OFF) +OPTION (ENABLE_CONDA "Build with conda dependency support?" OFF) OPTION (ENABLE_APPDATA "Build with AppStream appdata support?" OFF) OPTION (MULTI_SEMANTICS "Build with support for multiple distribution types?" OFF) @@ -178,18 +179,23 @@ ENDIF (ENABLE_RPMMD OR ENABLE_SUSEREPO OR ENABLE_APPDATA OR ENABLE_COMPS OR ENAB IF (ENABLE_ZLIB_COMPRESSION) FIND_PACKAGE (ZLIB REQUIRED) +INCLUDE_DIRECTORIES (${ZLIB_INCLUDE_DIRS}) ENDIF (ENABLE_ZLIB_COMPRESSION) IF (ENABLE_LZMA_COMPRESSION) FIND_PACKAGE (LZMA REQUIRED) +INCLUDE_DIRECTORIES (${LZMA_INCLUDE_DIR}) ENDIF (ENABLE_LZMA_COMPRESSION) IF (ENABLE_BZIP2_COMPRESSION) FIND_PACKAGE (BZip2 REQUIRED) +INCLUDE_DIRECTORIES (${BZIP2_INCLUDE_DIRS}) ENDIF (ENABLE_BZIP2_COMPRESSION) IF (ENABLE_ZSTD_COMPRESSION) FIND_LIBRARY (ZSTD_LIBRARY NAMES zstd) +FIND_PATH (ZSTD_INCLUDE_DIRS zstd.h) +INCLUDE_DIRECTORIES (${ZSTD_INCLUDE_DIRS}) ENDIF (ENABLE_ZSTD_COMPRESSION) IF (RPM5) @@ -202,6 +208,10 @@ PKG_CHECK_MODULES (RPM REQUIRED rpm) INCLUDE_DIRECTORIES (${RPM_INCLUDE_DIRS}) ENDIF (RPM5) +IF (ENABLE_CONDA) +SET (MULTI_SEMANTICS ON) +ENDIF (ENABLE_CONDA) + IF (MULTI_SEMANTICS) MESSAGE (STATUS "Enabling multi dist support") ENDIF (MULTI_SEMANTICS) @@ -285,7 +295,7 @@ FOREACH (VAR HAVE_STRCHRNUL HAVE_FOPENCOOKIE HAVE_FUNOPEN WORDS_BIGENDIAN ENDFOREACH (VAR) FOREACH (VAR - ENABLE_LINKED_PKGS ENABLE_COMPLEX_DEPS MULTI_SEMANTICS) + ENABLE_LINKED_PKGS ENABLE_COMPLEX_DEPS MULTI_SEMANTICS ENABLE_CONDA) IF(${VAR}) ADD_DEFINITIONS (-D${VAR}=1) SET (SWIG_FLAGS ${SWIG_FLAGS} -D${VAR}) |