1 |
On 28/01/16 06:45, Kfir Lavi wrote: |
2 |
> |
3 |
> On Thu, Jan 28, 2016 at 6:35 AM, Nikos Chantziaras <realnc@×××××.com |
4 |
> <mailto:realnc@×××××.com>> wrote: |
5 |
> |
6 |
> What I need is set -DENABLE_GUI=ON when either the qt4 or the qt5 |
7 |
> USE flag is enabled. But this doesn't work: |
8 |
> |
9 |
> $(cmake-utils_use qt4 qt5 ENABLE_GUI) |
10 |
> |
11 |
> How do I do this? I grep'ed the tree to find an example, but I can't |
12 |
> find one that uses two USE flags. |
13 |
> |
14 |
> |
15 |
> a bit of an hack: |
16 |
> use qt4 && use qt5 \ |
17 |
> && $(cmake-utilsBLAABLAA_enable ENABLE_GUI) |
18 |
|
19 |
That gives me errors: |
20 |
|
21 |
syntax error near unexpected token `&&' |
22 |
|
23 |
And I also don't know what to put in "BLAABLAA". I tried this: |
24 |
|
25 |
src_configure() { |
26 |
local mycmakeargs=( |
27 |
# other stuff here... |
28 |
use qt4 && use qt5 && $(cmake-utils_enable ENABLE_GUI) |
29 |
) |
30 |
cmake-utils_src_configure |
31 |
} |