From c243e51cdbad8e9f5c43440513f97fe57f567ceb Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 21 Dec 2012 17:24:22 +0000 Subject: main/sems: use relative paths in logs By default cmake will use full path to source files (*.c). This will make the log macro in core/log.h, who uses __FILE__ expand the source file to full path which will make the logs pretty noisy. We force cmake to use relative paths. --- main/sems/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/sems') diff --git a/main/sems/APKBUILD b/main/sems/APKBUILD index 33458758cc..37a0a1b805 100644 --- a/main/sems/APKBUILD +++ b/main/sems/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=sems pkgver=1.5.0 -pkgrel=1 +pkgrel=2 pkgdesc="SIP Express Media Server, an extensible SIP media server" url="http://iptel.org/sems/" arch="all" @@ -48,7 +48,11 @@ prepare() { build() { cd "$_builddir" + # force cmake to use relative paths. It helps us avoid having the + # full file path in the logs cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_USE_RELATIVE_PATHS=yes \ -DSEMS_USE_SPANDSP=yes \ -DSEMS_USE_LIBSAMPLERATE=yes \ -DSEMS_USE_ZRTP=NO \ -- cgit v1.2.3