diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-29 01:59:39 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:20 +0200 |
commit | 2ef028c41c3e251a014476754f3530d52e71e61f (patch) | |
tree | c11a5d231614a022be438e456b1a276da4010399 | |
parent | 476aa3eb99186e27f3e0b1841d5fe823c99ed52e (diff) |
Add missing macro used in building RPM spec file
Change-Id: I4058a9fc101b7aea0343a68557a2e5b76ec827f2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | cmake/common.cmake | 4 | ||||
-rw-r--r-- | rpm/rpm-config.spec.in (renamed from rpm/config.spec.in) | 0 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake index 8e23af7..1c931cb 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -52,6 +52,10 @@ macro(PROJECT_TARGET_ADD TARGET_NAME) set(TARGET_NAME ${TARGET_NAME}) endmacro(PROJECT_TARGET_ADD) +macro(PROJECT_PKGDEP_ADD PKG_NAME) + set_property(GLOBAL APPEND PROPERTY PROJECT_PKG_DEPS ${PKG_NAME}) +endmacro(PROJECT_PKGDEP_ADD) + # Check GCC minimal version if (gcc_minimal_version) message (STATUS "${Blue}-- Check gcc_minimal_version (found gcc version ${CMAKE_C_COMPILER_VERSION}) (found g++ version ${CMAKE_CXX_COMPILER_VERSION})${ColourReset}") diff --git a/rpm/config.spec.in b/rpm/rpm-config.spec.in index 66346fb..66346fb 100644 --- a/rpm/config.spec.in +++ b/rpm/rpm-config.spec.in |