summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-20 09:21:44 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-20 09:21:44 +0200
commit1b019c9b661c4dc23fbba4af7659745570ec7473 (patch)
tree7c75a77ea79642f1d28da1b3c071949419b4492e
parent0dc4a350b300044848515de6acf640647dd3489b (diff)
downloadlibuca-1b019c9b661c4dc23fbba4af7659745570ec7473.tar.gz
libuca-1b019c9b661c4dc23fbba4af7659745570ec7473.tar.bz2
libuca-1b019c9b661c4dc23fbba4af7659745570ec7473.tar.xz
libuca-1b019c9b661c4dc23fbba4af7659745570ec7473.zip
Prevent building doc targets all the time
-rw-r--r--src/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 308ab0a..eee703d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -126,7 +126,7 @@ pkg_check_modules(GTK_DOC gtk-doc)
if(GTK_DOC_FOUND)
option(WITH_GTK_DOC "Build documentation" ON)
if (WITH_GTK_DOC)
- set(docs_dir "${CMAKE_CURRENT_BINARY_DIR}/..")
+ set(docs_dir "${CMAKE_CURRENT_BINARY_DIR}")
set(docs_out "${docs_dir}/reference")
file(MAKE_DIRECTORY ${docs_out})
@@ -178,7 +178,7 @@ if(GTK_DOC_FOUND)
COMMAND ${GTK_DOC_SCAN}
--module=uca
--source-dir=${CMAKE_CURRENT_SOURCE_DIR}
- DEPENDS ${uca_SRCS}
+ DEPENDS uca-gobject
WORKING_DIRECTORY ${docs_out})
add_custom_command(OUTPUT ${docs_out}/uca.args
@@ -191,17 +191,17 @@ if(GTK_DOC_FOUND)
--module=uca
--source-dir=${CMAKE_CURRENT_SOURCE_DIR}
--output-format=xml
- DEPENDS ${docs_out}/uca-decl.txt ${docs_out}/uca.args
+ DEPENDS ${docs_out}/uca.args
WORKING_DIRECTORY ${docs_out})
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/../html.stamp
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html.stamp
COMMAND ${GTK_DOC_MKHTML}
uca
${docs_out}/uca-docs.xml
DEPENDS ${docs_out}/sgml.stamp ${docs_out}/uca-docs.xml
WORKING_DIRECTORY ${docs_out})
- add_custom_target(reference ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/../html.stamp)
+ add_custom_target(reference ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html.stamp)
install(FILES ${reference_files} DESTINATION share/gtk-doc/html/uca)
endif()