Utilities/Sphinx: Port qthelp css workaround to Sphinx 1.4

The `default.css` static content is no longer placed in the qthelp
`_static` directory.  If it does not exist, skip over it and insert
the content of `basic.css` directly into `cmake.css`.
This commit is contained in:
Brad King 2017-02-10 10:41:50 -05:00
parent 971384c287
commit 97917900d1

View File

@ -1,11 +1,15 @@
file(READ "${CSS_DIR}/basic.css" BasicCssContent)
file(READ "${CSS_DIR}/default.css" DefaultCssContent)
string(REPLACE
"@import url(\"basic.css\")" "${BasicCssContent}"
DefaultCssContent "${DefaultCssContent}"
)
if(EXISTS "${CSS_DIR}/default.css")
file(READ "${CSS_DIR}/default.css" DefaultCssContent)
string(REPLACE
"@import url(\"basic.css\")" "${BasicCssContent}"
DefaultCssContent "${DefaultCssContent}"
)
else()
set(DefaultCssContent "${BasicCssContent}")
endif()
file(READ "${CSS_DIR}/cmake.css" CMakeCssContent)
string(REPLACE