Use relative path to link style.css correctly from website

If an absolute path is specified, this will be embedded into the
generated files, which is of course not correct when put on another
host.
This commit is contained in:
Tor Harald Sandve 2013-02-05 13:37:55 +01:00 committed by Roland Kaufmann
parent 33f3bc29e7
commit 8ea72fcec1
2 changed files with 11 additions and 1 deletions

View File

@ -421,6 +421,16 @@ if (DOXYGEN_FOUND)
endforeach (format)
endif (DOXYGEN_FOUND)
# stylesheets must be specified with relative path in Doxyfile, or the
# full path (to the source directory!) will be put in the output HTML.
# thus, we'll need to copy the stylesheet to this path relative to where
# Doxygen will be run (in the output tree)
if (NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
file (COPY ${PROJECT_SOURCE_DIR}/style.css
DESTINATION ${PROJECT_BINARY_DIR}
)
endif (NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
### clean in-source builds ###
set (DISTCLEAN_FILES
CMakeCache.txt

View File

@ -851,7 +851,7 @@ HTML_FOOTER =
# the style sheet file to the HTML output directory, so don't put your own
# stylesheet in the HTML output directory as well, or it will be erased!
HTML_STYLESHEET = @PROJECT_SOURCE_DIR@/style.css
HTML_STYLESHEET = style.css
# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the HTML output directory. Note