Commit 1858b5cf authored by Roman Donchenko's avatar Roman Donchenko

Don't install documentation if it isn't built

The HAVE_DOC_GENERATOR variable was always true.

(cherry picked from commit 3d46c1f9)

Conflicts:
	doc/CMakeLists.txt
parent 6274e1fc
......@@ -2,7 +2,11 @@
# CMake file for OpenCV docs
#-----------------------
set(HAVE_DOC_GENERATOR BUILD_DOCS AND DOXYGEN_FOUND)
if(BUILD_DOCS AND DOXYGEN_FOUND)
set(HAVE_DOC_GENERATOR TRUE)
else()
set(HAVE_DOC_GENERATOR FALSE)
endif()
if(HAVE_DOC_GENERATOR)
project(opencv_docs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment