From 9efb24943e561178ec34f344df2f58ade13e5ac4 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 27 Sep 2017 19:24:24 +0300 Subject: [PATCH] doc: fix documentation generation with JavaScript bindings --- doc/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 1b4eee122c..92266abce6 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -183,6 +183,8 @@ if(BUILD_DOCS AND DOXYGEN_FOUND) set(ocv_js_dir "${CMAKE_BINARY_DIR}/bin") set(ocv_js "opencv.js") list(APPEND js_assets "${ocv_js_dir}/${ocv_js}") + elseif(DEFINED OPENCV_JS_LOCATION) + list(APPEND js_assets "${OPENCV_JS_LOCATION}") endif() # copy haar cascade files