mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-30 21:35:55 +00:00
Update site dir
This commit is contained in:
parent
8b1fcf5cc1
commit
0fae326c42
@ -464,12 +464,13 @@ function(add_doc_target)
|
|||||||
${CMAKE_COMMAND}
|
${CMAKE_COMMAND}
|
||||||
-E env PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/support/python
|
-E env PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/support/python
|
||||||
${MKDOCS} build -f ${CMAKE_CURRENT_SOURCE_DIR}/support/mkdocs.yml
|
${MKDOCS} build -f ${CMAKE_CURRENT_SOURCE_DIR}/support/mkdocs.yml
|
||||||
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc/html
|
# MkDocs requires the site dir to be outside of the doc dir.
|
||||||
|
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc-html
|
||||||
--no-directory-urls
|
--no-directory-urls
|
||||||
SOURCES ${sources})
|
SOURCES ${sources})
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/
|
||||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt OPTIONAL)
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt OPTIONAL)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user