From: Romain Forlot Date: Sun, 28 May 2017 23:59:39 +0000 (+0200) Subject: Add missing macro used in building RPM spec file X-Git-Tag: 3.99.2~69 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=cff5c4f02ae1c76992dd8a08eefe32c8d05b054d;p=apps%2Fapp-templates.git Add missing macro used in building RPM spec file Change-Id: I4058a9fc101b7aea0343a68557a2e5b76ec827f2 Signed-off-by: Romain Forlot --- 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 similarity index 100% rename from rpm/config.spec.in rename to rpm/rpm-config.spec.in