1 |
Dnia 20 stycznia 2016 11:43:05 CET, Michael Palimaka <kensington@g.o> napisał(a): |
2 |
>--- |
3 |
> eclass/cmake-utils.eclass | 15 +++++++++++++-- |
4 |
> 1 file changed, 13 insertions(+), 2 deletions(-) |
5 |
> |
6 |
>diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
7 |
>index 1de863f..e8b24bd 100644 |
8 |
>--- a/eclass/cmake-utils.eclass |
9 |
>+++ b/eclass/cmake-utils.eclass |
10 |
>@@ -250,11 +250,11 @@ _generator_to_use() { |
11 |
> echo ${generator_name} |
12 |
> } |
13 |
> |
14 |
>-# @FUNCTION: comment_add_subdirectory |
15 |
>+# @FUNCTION: cmake_comment_add_subdirectory |
16 |
> # @USAGE: <subdirectory> |
17 |
> # @DESCRIPTION: |
18 |
># Comment out an add_subdirectory call in CMakeLists.txt in the current |
19 |
>directory |
20 |
>-comment_add_subdirectory() { |
21 |
>+cmake_comment_add_subdirectory() { |
22 |
> if [[ -z ${1} ]]; then |
23 |
>die "comment_add_subdirectory must be passed the directory name to |
24 |
>comment" |
25 |
> fi |
26 |
>@@ -265,6 +265,17 @@ comment_add_subdirectory() { |
27 |
> fi |
28 |
> } |
29 |
> |
30 |
>+# @FUNCTION: comment_add_subdirectory |
31 |
>+# @USAGE: <subdirectory> |
32 |
>+# @DESCRIPTION: |
33 |
>+# Comment out an add_subdirectory call in CMakeLists.txt in the |
34 |
>current directory |
35 |
>+# Banned in EAPI 6 and later - use cmake_comment_add_subdirectory |
36 |
>instead. |
37 |
>+comment_add_subdirectory() { |
38 |
>+ has "${EAPI:-0}" 2 3 4 5 || die "comment_add_subdirectory is banned |
39 |
>in EAPI 6 and later - use cmake_comment_add_subdirectory instead" |
40 |
>+ |
41 |
>+ cmake_comment_add_subdirectory "$@" |
42 |
>+} |
43 |
>+ |
44 |
> # @FUNCTION: cmake-utils_use_with |
45 |
> # @USAGE: <USE flag> [flag name] |
46 |
> # @DESCRIPTION: |
47 |
|
48 |
Enough to 'replace' once :-P (commit message). |
49 |
-- |
50 |
Best regards, |
51 |
Michał Górny (by phone) |