<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 14, 2015 at 8:08 PM, Mark Gaiser <span dir="ltr"><<a href="mailto:markg85@gmail.com" target="_blank">markg85@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 14, 2015 at 7:36 PM, Martin Klapetek <span dir="ltr"><<a href="mailto:martin.klapetek@gmail.com" target="_blank">martin.klapetek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Wed, Jan 14, 2015 at 7:31 PM, Mark Gaiser <span dir="ltr"><<a href="mailto:markg85@gmail.com" target="_blank">markg85@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Kdesrc-build uses (right?) <a href="http://projects.kde.org" target="_blank">projects.kde.org</a> to get a list of frameworks and compile them. That works great :)<br></div><div><br></div><div>However, a few hours ago David Faure pushed something rather cool in KIO [1] that i would like to play with. It adds the KIOCORE_ONLY cmake define. Sure, i can compile KIO without kdesrc-build and just add "-DKIOCORE_ONLY" to the cmake step.</div><div><br></div><div>I prefer to keep using kdesrc-build so i wonder how to add a cmake define for just the kio framework.</div></div></blockquote><div><br></div></span><div>You can put it locally into your kdesrc-buildrc with "cmake-options", something like:</div><div><br></div><div>module kio</div><div>    repository kde-projects</div><div>    cmake-options -DKIOCORE_ONLY=true<br></div><div>end module</div><div><br></div><div>You can even name the module kio-coreonly and then do kdesrc-build kio-coreonly to get the core only.</div><div><br></div><div>Cheers</div></div><span><font color="#888888">-- <br><div><div><span style="color:rgb(102,102,102)">Martin Klapetek | KDE Developer</span></div></div>
</font></span></div></div>
</blockquote></div><br></div></div></div><div class="gmail_extra">Hi Martin,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thank you for the hints. The first solution works, but is not ideal. When i do that then typing: "kdesrc-build kio" will compile that kio you just added. However, when just typing "kdesrc-build" it only compiles the kio from frameworks, not the one added in a later kdesrc-build include file. I'm guessing this is a bug?</div><div class="gmail_extra"><br></div><div class="gmail_extra">The second solution also works, but results in KIO being compiled twice. Once for frameworks and once where added.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Do you know another way? :)</div></div>
</blockquote></div><br>If you look at kf5-frameworks-build-include at the bottom, there's an example</div><div class="gmail_extra">of how to set an option just for one module. You can either edit that file directly</div><div class="gmail_extra">or just add it to your kdesrc-buildrc (if you have none put one in ~/.kdesrc-build)<br clear="all"><div><br></div><div>Cheers</div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">Martin Klapetek | KDE Developer</span></div></div>
</div></div>