comparison doc/CMakeLists.txt @ 513:928a40398dec

CMake: split options and conditions, closes #716 As described in the issue, the CMake process force off a cache variable when a condition is not met. If the user installs the requirements and re-run CMake it must also set the variable to on which is inconvenient. The new process is to add a secondary variable and do not touch user defined options.
author David Demelier <markand@malikania.fr>
date Mon, 23 Oct 2017 21:30:17 +0200
parents c6fbb6e0e06d
children bb9771fb5f44
comparison
equal deleted inserted replaced
512:b8da1d8c2a72 513:928a40398dec
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 # 17 #
18 18
19 project(doc) 19 project(doc)
20 20
21 if (WITH_DOXYGEN) 21 if (HAVE_DOXYGEN)
22 add_subdirectory(doxygen) 22 add_subdirectory(doxygen)
23 endif () 23 endif ()
24 24
25 add_subdirectory(examples) 25 add_subdirectory(examples)
26 add_subdirectory(man) 26 add_subdirectory(man)
27 27
28 if (WITH_HTML) 28 if (HAVE_HTML)
29 add_subdirectory(html) 29 add_subdirectory(html)
30 endif () 30 endif ()