On Mon, May 26, 2014 at 10:08:00PM +0300, Elan Ruusamäe wrote:
> for autotools we have macros for --enable, --disable, --with --without
> http://git.pld-linux.org/?p=packages/rpm-build-macros.git;a=blob;f=rpm.macros;h=fb44ba49b4492d80ddf696d04c427b16f9661d96;hb=b89253d0468b9a528a89c47bfc36e7274666310f#l339
> 
> would be nice to have same for cmake as well
> how to name them?
> 
> for cmake it's simplier: need only one macro, as there's only need for 
> -DFOO=ON|OFF

Is there any advantage?
I don't find %{__cmake_on foo FOO} more readable than %{?with_foo:-DFOO=ON}.

I'm already confused sometimes, which argument to __with_without is
bcond name and which is option... __with_unless, __without_if and
__with_without_not are even less straight.


-- 
Jakub Bogusz    http://qboosh.pl/
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to