KDE/kdegraphics/doc

Matthew Woehlke mw_triad at users.sourceforge.net
Mon Nov 16 22:33:28 CET 2009


SVN commit 1050211 by mwoehlke:

don't add_directory(kcontrol) twice

I think this approach is okay, if not someone please let me know :-).

CCMAIL: kde-buildsystem at kde.org


 M  +7 -2      CMakeLists.txt  


--- trunk/KDE/kdegraphics/doc/CMakeLists.txt #1050210:1050211
@@ -4,14 +4,19 @@
     endif()
     if (X11_xf86vmode_FOUND)
        if(BUILD_kgamma)
-         add_subdirectory(kcontrol)
+         set(BUILD_doc_kcontrol TRUE)
        endif()
     endif (X11_xf86vmode_FOUND)
 endif(Q_WS_X11)
 
 if(KDE4_GPHOTO2 AND GPHOTO2_FOUND)
-   add_subdirectory(kcontrol)
+  set(BUILD_doc_kcontrol TRUE)
 endif(KDE4_GPHOTO2 AND GPHOTO2_FOUND)
+
+if(BUILD_doc_kcontrol)
+  add_subdirectory(kcontrol)
+endif(BUILD_doc_kcontrol)
+
 if(QIMAGEBLITZ_FOUND)
   if(BUILD_kolourpaint)
     add_subdirectory(kolourpaint)


More information about the Kde-buildsystem mailing list