To be able to let documentation build targets depend on the binary build
targets, it must be moved after those. A patch that makes use of this follows.

---
 CMakeLists.txt |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cfc50eb..160bb45 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -147,12 +147,6 @@ endif ( BUILD_SHARED_LIBS )
 
 
 #
-# build the documentation
-#
-add_subdirectory ( doc )
-
-
-#
 # build the applications
 #
 add_custom_target ( openobex-apps )
@@ -161,6 +155,15 @@ add_subdirectory ( ircp )
 
 
 #
+# build the documentation
+#
+option ( BUILD_DOCUMENTATION "Build the glib binding library" ON)
+if ( BUILD_DOCUMENTATION )
+add_subdirectory ( doc )
+endif ( BUILD_DOCUMENTATION )
+
+
+#
 # build the glib binding library
 # not enabled by default because it requires an additional dependency
 #
-- 
1.5.6.5


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to