summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Kämpf <kkaempf@suse.de>2010-11-24 17:45:50 +0100
committerKlaus Kämpf <kkaempf@suse.de>2010-11-24 17:45:50 +0100
commit9efb0ff464be9c49db686762db07b029f7fcdb2e (patch)
tree5acd656c2cabe40d4665d3a6e9f6fea2ffee61ae
parent1b81c2fed0efcc0063a608c52ef4344c146da0ba (diff)
downloadlibzypp-bindings-9efb0ff464be9c49db686762db07b029f7fcdb2e.tar.gz
libzypp-bindings-9efb0ff464be9c49db686762db07b029f7fcdb2e.tar.bz2
libzypp-bindings-9efb0ff464be9c49db686762db07b029f7fcdb2e.zip
Enable rdoc generation only if rdoc is locally available
-rw-r--r--swig/ruby/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/swig/ruby/CMakeLists.txt b/swig/ruby/CMakeLists.txt
index 628c3c4..a8131c0 100644
--- a/swig/ruby/CMakeLists.txt
+++ b/swig/ruby/CMakeLists.txt
@@ -42,6 +42,7 @@ INSTALL(TARGETS zypp_ruby LIBRARY DESTINATION ${RUBY_VENDORARCH_DIR})
#
# This requires rdoc-swig from https://github.com/kkaempf/rdoc-swig
#
+IF(EXISTS ${CMAKE_SOURCE_DIR}/swig/ruby/rdoc)
SET(rdoc_dir "${CMAKE_CURRENT_BINARY_DIR}/html")
ADD_CUSTOM_COMMAND (
OUTPUT ${rdoc_dir}
@@ -53,7 +54,7 @@ ADD_CUSTOM_COMMAND (
DEPENDS ${CMAKE_SOURCE_DIR}/swig/*.i ${CMAKE_SOURCE_DIR}/swig/ruby/*.rb ${CMAKE_SOURCE_DIR}/swig/ruby/*.i
)
ADD_CUSTOM_TARGET(ruby_rdoc ALL DEPENDS "${rdoc_dir}")
-
+ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/swig/ruby/rdoc)
#
# Leave this to %doc in the .spec file
#INSTALL(DIRECTORY "${rdoc_dir}" DESTINATION ${DOC_INSTALL_DIR})