diff options
Diffstat (limited to 'lib/cmake')
-rw-r--r-- | lib/cmake/packaging.cmake (renamed from lib/cmake/Modules/Packaging.cmake) | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/cmake/Modules/Packaging.cmake b/lib/cmake/packaging.cmake index 2ceda1426..5f1691722 100644 --- a/lib/cmake/Modules/Packaging.cmake +++ b/lib/cmake/packaging.cmake @@ -1,4 +1,4 @@ -# Copyright (c) 2017-2019 Cisco and/or its affiliates. +# Copyright (c) 2021-2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -32,11 +32,21 @@ set(lib${LIBHICN}-dev_DESCRIPTION ${${LIBHICN}_DESCRIPTION} ) set(lib${LIBHICN}-dev_DEB_DEPENDENCIES - "libhicn (>= stable_version)" + "libhicn (= stable_version)" CACHE STRING "Dependencies for deb/rpm package." ) + +if (INTERNAL_ENVIRONMENT) + include(CheckSafeC) + CheckSafeC() + set(lib${LIBHICN}-dev_DEB_DEPENDENCIES + "${lib${LIBHICN}-dev_DEB_DEPENDENCIES}, ${SAFEC_DEPENDENCY}" + CACHE STRING "Dependencies for deb/rpm package." + ) +endif() + set(lib${LIBHICN}-dev_RPM_DEPENDENCIES - "libhicn >= stable_version" + "libhicn = stable_version" CACHE STRING "Dependencies for deb/rpm package." ) |