From 9efb0ff464be9c49db686762db07b029f7fcdb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Wed, 24 Nov 2010 17:45:50 +0100 Subject: Enable rdoc generation only if rdoc is locally available --- swig/ruby/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}) -- cgit v1.2.3