[Libwebsockets] RPM build options

Canaday, Andrew andrew.canaday at nytimes.com
Tue Jul 29 18:11:24 CEST 2014

Hey all,

   I'm wondering if someone with some cmake expertise could help me out: I
want to build the *libwebsockets_rpm* target and have command line options
(LWS_WITH_LIBEV, etc) propagate to the RPM build. I tried modifying the
spec file as follows:

diff --git a/libwebsockets.spec b/libwebsockets.spec
> index 10015dd..1ef3ee9 100644
> --- a/libwebsockets.spec
> +++ b/libwebsockets.spec
> @@ -30,7 +30,7 @@ Development files for libwebsockets
>  %build
>  mkdir -p build
>  cd build
> -%cmake ..
> +%cmake -C %{_topdir}/../CMakeCache.txt ..
>  make
>  %install

But this results in dependency issues. Is there some way to cleanly
propagate the options from the top level build into the rpm build?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20140729/71d0abd7/attachment.html>

More information about the Libwebsockets mailing list