summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2016-05-07 19:23:56 -0400
committerAllen Winter <allen.winter@kdab.com>2016-05-07 19:23:56 -0400
commit792e64253d5b33bb45456d13a97b4491c9d6ffdd (patch)
tree12949aa77ee85d7a85510342b91fea43c8698ba9 /doc
parentde4c482bf9bf6cee74bf1e70e77993ccdc050ea7 (diff)
downloadlibical-git-792e64253d5b33bb45456d13a97b4491c9d6ffdd.tar.gz
doc/reference/libical-glib/CMakeLists.txt - XML_CATALOG_FILES on OSX
this time use env to pass the environment variable to gtkdoc_mkhtml
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/libical-glib/CMakeLists.txt41
1 files changed, 23 insertions, 18 deletions
diff --git a/doc/reference/libical-glib/CMakeLists.txt b/doc/reference/libical-glib/CMakeLists.txt
index 99fcdfc2..a3879773 100644
--- a/doc/reference/libical-glib/CMakeLists.txt
+++ b/doc/reference/libical-glib/CMakeLists.txt
@@ -8,14 +8,6 @@ if(NOT (GTKDOC_SCAN AND GTKDOC_MKDB AND GTKDOC_MKHTML AND GTKDOC_FIXXREF))
return()
endif()
-#with homebrew on OSX, we need to set XML_CATALOG_FILES
-if(APPLE)
- set(xml_cat "/usr/local/etc/xml/catalog")
- if(EXISTS ${xml_cat})
- set(ENV{XML_CATALOG_FILES} ${xml_cat})
- endif()
-endif()
-
# To regenerate libical-glib-docs.xml.in from current sources use these steps:
# a) delete ${CMAKE_CURRENT_BINARY_DIR}/libical-glib-docs.xml
# b) go to ${CMAKE_CURRENT_BINARY_DIR} and run command:
@@ -57,16 +49,29 @@ add_custom_command(OUTPUT xml/libical-glib-doc.bottom
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libical-glib-docs.xml"
)
-add_custom_command(OUTPUT html/index.html
- COMMAND ${GTKDOC_MKHTML}
- --path=..
- libical-glib
- ../libical-glib-docs.xml
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
- DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libical-glib-docs.xml"
- "${CMAKE_CURRENT_BINARY_DIR}/xml/libical-glib-doc.bottom"
- COMMENT "Generating libical-glib documentation"
-)
+if(APPLE)
+ add_custom_command(OUTPUT html/index.html
+ COMMAND env XML_CATALOG_FILES="/usr/local/etc/xml/catalog" ${GTKDOC_MKHTML}
+ --path=..
+ libical-glib
+ ../libical-glib-docs.xml
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libical-glib-docs.xml"
+ "${CMAKE_CURRENT_BINARY_DIR}/xml/libical-glib-doc.bottom"
+ COMMENT "Generating libical-glib documentation"
+ )
+else()
+ add_custom_command(OUTPUT html/index.html
+ COMMAND ${GTKDOC_MKHTML}
+ --path=..
+ libical-glib
+ ../libical-glib-docs.xml
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libical-glib-docs.xml"
+ "${CMAKE_CURRENT_BINARY_DIR}/xml/libical-glib-doc.bottom"
+ COMMENT "Generating libical-glib documentation"
+ )
+endif()
add_custom_target(documentation ALL
COMMAND ${GTKDOC_FIXXREF}