mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
Don't install documentation if it isn't built
The HAVE_DOC_GENERATOR variable was always true.
(cherry picked from commit 3d46c1f960
)
Conflicts:
doc/CMakeLists.txt
This commit is contained in:
parent
6274e1fc5f
commit
1858b5cfba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user