ref: 88872fe806bb3700c8dc6372d66e1b6620f78da2
parent: a7bbd897fc6be13b8699a206dd422ad6e09928d3
author: Ben Harris <bjh21@bjh21.me.uk>
date: Fri Jan 20 04:50:24 EST 2023
Install KaiOS app docs even without Halibut Rather than installing the documentation only when Halibut is available, install the documentation whenever it exists. This allows for the way that Buildscr injects the documentation into official KaiOS builds.
--- a/cmake/platforms/emscripten.cmake
+++ b/cmake/platforms/emscripten.cmake
@@ -124,10 +124,8 @@
DESTINATION kaios/${name})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/kaios/kaiads-glue.js
DESTINATION kaios/${name})
- if (HALIBUT)
- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/help
- DESTINATION kaios/${name})
- endif()
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/help OPTIONAL
+ DESTINATION kaios/${name})
endforeach()
endfunction()