<div dir="ltr"><div style>Andi,</div><div><br></div>Ask to Nicolas Lécureuil who make official tarball<div><br></div><div style>Gilles</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/1 Andi Clemens <span dir="ltr"><<a href="mailto:andi.clemens@gmail.com" target="_blank">andi.clemens@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
I'm unable to disable the build of kipiplugins and all the other optional libraries by disabling it in the CMAKE options.<br>
<br>
Whenever I disable for example "BUILD_kipi_plugins", it still compiles it.<br>
The only way to fix this is to use the macro MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY for the kipi_plugins subdirectory in the extra/CMakeLists.txt<br>
<br>
Shouldn't this be the normal inclusion strategy?<br>
I use the following CMakeLists.txt content in extra now:<br>
<br>
------------------------------<u></u>----------------------<br>
<br>
FIND_PACKAGE(KDE4 REQUIRED)<br>
INCLUDE(<u></u>MacroOptionalAddSubdirectory)<br>
<br>
IF (${DIGIKAMSC_USE_PRIVATE_<u></u>KDEGRAPHICS})<br>
    MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY(libksane)<br>
    ADD_SUBDIRECTORY(libkipi)<br>
    ADD_SUBDIRECTORY(libkexiv2)<br>
    ADD_SUBDIRECTORY(libkdcraw)<br>
ENDIF()<br>
<br>
MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY(libmediawiki)<br>
MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY(libkvkontakte)<br>
<br>
MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY(libkgeomap)<br>
MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY(libkface)<br>
MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY(kipi-plugins)<br>
<br>
------------------------------<u></u>----------------------<br>
<br>
Now I can disable the optional directories with ccmake.<br>
<br>
I don't quite understand why the BUILD_xxx options are set anyway, because only the macro MACRO_OPTIONAL_ADD_<u></u>SUBDIRECTORY should set them??<br>
<br>
Is it ok to commit this?<br>
How do package builders build digikam only? Because the normal way through cmake doesn't seem to work.<br>
Maybe they just checkout core?<span class="HOEnZb"><font color="#888888"><br>
<br>
Andi<br>
<br>
-- <br>
Using Opera's revolutionary email client: <a href="http://www.opera.com/mail/" target="_blank">http://www.opera.com/mail/</a><br>
______________________________<u></u>_________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org" target="_blank">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/digikam-devel</a><br>
</font></span></blockquote></div><br></div>