summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Utilities/Sphinx/apply_qthelp_css_workaround.cmake14
1 files changed, 9 insertions, 5 deletions
diff --git a/Utilities/Sphinx/apply_qthelp_css_workaround.cmake b/Utilities/Sphinx/apply_qthelp_css_workaround.cmake
index 8b74d12..288f370 100644
--- a/Utilities/Sphinx/apply_qthelp_css_workaround.cmake
+++ b/Utilities/Sphinx/apply_qthelp_css_workaround.cmake
@@ -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