let doxygen decide what is MATHJAX_RELPATH by default

This commit is contained in:
Sébastien Loriot 2018-01-24 14:35:20 +01:00
parent f10f072139
commit 5e81643b53
3 changed files with 7 additions and 4 deletions

View File

@ -185,8 +185,11 @@ function(configure_doxygen_package CGAL_PACKAGE_NAME)
endfunction() endfunction()
# set up the directories and variables # set up the directories and variables
set(CGAL_DOC_MATHJAX_LOCATION "https://cdn.mathjax.org/mathjax/latest" if (CGAL_DOC_MATHJAX_LOCATION)
CACHE STRING "The location of MathJax to be used for the documentation.") set(CGAL_DOC_MATHJAX_LOCATION_FULL_OPTION_LINE "MATHJAX_RELPATH = ${CGAL_DOC_MATHJAX_LOCATION}")
else()
set(CGAL_DOC_MATHJAX_LOCATION "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2")
endif()
set(CGAL_DOC_OUTPUT_DIR "${CMAKE_BINARY_DIR}/doc_output") set(CGAL_DOC_OUTPUT_DIR "${CMAKE_BINARY_DIR}/doc_output")
file(MAKE_DIRECTORY "${CGAL_DOC_OUTPUT_DIR}") file(MAKE_DIRECTORY "${CGAL_DOC_OUTPUT_DIR}")

View File

@ -1571,7 +1571,7 @@ MATHJAX_FORMAT = HTML-CSS
# The default value is: http://cdn.mathjax.org/mathjax/latest. # The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES. # This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = ${CGAL_DOC_MATHJAX_LOCATION} ${CGAL_DOC_MATHJAX_LOCATION_FULL_OPTION_LINE}
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example # extension names that should be enabled during MathJax rendering. For example

View File

@ -1569,7 +1569,7 @@ MATHJAX_FORMAT = HTML-CSS
# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/. # The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/.
# This tag requires that the tag USE_MATHJAX is set to YES. # This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = ${CGAL_DOC_MATHJAX_LOCATION} ${CGAL_DOC_MATHJAX_LOCATION_FULL_OPTION_LINE}
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example # extension names that should be enabled during MathJax rendering. For example