diff options
author | Brad King <brad.king@kitware.com> | 2017-05-02 12:22:44 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-02 12:22:47 (GMT) |
commit | 4804c7f30ff659420cc0be5491bb77faa47a2f0c (patch) | |
tree | 32f4b8201ad5ad6178e3e77cfc2d9343a439ff7c | |
parent | 8fba1f4a0314dba983dee55190b8f903148a08fe (diff) | |
parent | c273906f48f6e0a84917351288b68a1ec0da64cd (diff) | |
download | CMake-4804c7f30ff659420cc0be5491bb77faa47a2f0c.zip CMake-4804c7f30ff659420cc0be5491bb77faa47a2f0c.tar.gz CMake-4804c7f30ff659420cc0be5491bb77faa47a2f0c.tar.bz2 |
Merge topic 'doc-no-depend'
c273906f Utilities/Sphinx: Build documentation independently by default
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !786
-rw-r--r-- | Utilities/Sphinx/CMakeLists.txt | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt index edb9469..a29380c 100644 --- a/Utilities/Sphinx/CMakeLists.txt +++ b/Utilities/Sphinx/CMakeLists.txt @@ -128,18 +128,20 @@ endforeach() add_custom_target(documentation ALL DEPENDS ${doc_format_outputs}) -foreach(t - cmake - ccmake - cmake-gui - cpack - ctest - ) - if(TARGET ${t}) - # Build documentation after main executables. - add_dependencies(documentation ${t}) - endif() -endforeach() +if(CMake_SPHINX_DEPEND_ON_EXECUTABLES) + foreach(t + cmake + ccmake + cmake-gui + cpack + ctest + ) + if(TARGET ${t}) + # Build documentation after main executables. + add_dependencies(documentation ${t}) + endif() + endforeach() +endif() if(SPHINX_MAN) file(GLOB man_rst RELATIVE ${CMake_SOURCE_DIR}/Help/manual |