Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mlcoch <tmlcoch@redhat.com>2016-03-11 14:23:45 +0300
committerTomas Mlcoch <tmlcoch@redhat.com>2016-03-11 14:27:15 +0300
commit56ef13736051d4611deea571f0b7fc356c66bc26 (patch)
tree62ef98bcd46de2470a345b6b8e46f9248fd0104d /CMakeLists.txt
parenta0a50d9f05eeebc40484de3cefb05af8fd03a256 (diff)
Misc: Add cr_version_string_with_features() function
This function returns a static string which contains version of createrepo_c library and list of features which were enabled during compilation time. Currently there are only two features: "DeltaRPM" which means that createrepo_c lib was compiled with support for generation of Delta RPMS. "LegacyWeakdeps" which means that createrepo_c was compiled with support for legacy weakdeps which are (were?) used in OpenSuse and related distros. Example string: "0.10.0 (Features: DeltaRPM )" Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index daae72c..7757066 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,6 +92,10 @@ IF (ENABLE_DRPM)
set(CR_DELTA_RPM_SUPPORT "1")
ENDIF (NOT DRPM_LIBRARY)
endif (DRPM_PATH)
+
+ IF (CR_DELTA_RPM_SUPPORT)
+ ADD_DEFINITIONS("-DCR_DELTA_RPM_SUPPORT")
+ ENDIF (CR_DELTA_RPM_SUPPORT)
ENDIF (ENABLE_DRPM)
# Get package version