diff options
author | Jaka Kranjc | 2007-11-13 12:49:44 +0000 |
---|---|---|
committer | Jaka Kranjc | 2007-11-13 18:33:23 +0000 |
commit | fc6e98fe18bdc17a5a2bd1d0486afcab6fea2e7d (patch) | |
tree | 87ab7f1904eb4195c50cdca21a00ab14382b527c /FUNCTIONS | |
parent | 585cceb713e18cc975d9aa6b1c97ce505f1b2d6c (diff) |
FUNCTIONS:
cmake flags use : which is an internal sorcery delimiter.
In order to facilitate the passing of depends flags, use % instead and call
prepare_cmake_flags at the start of BUILD.
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -526,6 +526,18 @@ function build_qt3_or_4() make } +# cmake flags use : which is an internal sorcery delimiter. +# In order to facilitate the passing of depends flags, use % instead and call +# this function at the start of BUILD. Don't use it anywhere else. +# Example: +# DEPENDS: depends kdelibs4 -DCRUFT%BOOL=FALSE; ... +# BUILD: prepare_cmake_flags; ... +function prepare_cmake_flags() +{ + OPTS="${OPTS//%/:}" +} + + #------------------------------------------------------------------------- ## Print the version of the running kernel. #------------------------------------------------------------------------- |