From 01488106b789f4877450fe580bd92bba9845246a Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 24 Oct 2013 12:05:10 +0000 Subject: [PATCH] Generate documentation only if corresopnding option is swiched on. --- src/Tools/MGCleanerPlug/CMakeLists.txt | 5 +++-- src/Tools/Verima/CMakeLists.txt | 5 +++-- src/Tools/YamsPlug/CMakeLists.txt | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Tools/MGCleanerPlug/CMakeLists.txt b/src/Tools/MGCleanerPlug/CMakeLists.txt index 127e849f7..d6147291d 100644 --- a/src/Tools/MGCleanerPlug/CMakeLists.txt +++ b/src/Tools/MGCleanerPlug/CMakeLists.txt @@ -16,8 +16,9 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # - -ADD_SUBDIRECTORY(doc) +IF(SALOME_BUILD_DOC) + ADD_SUBDIRECTORY(doc) +ENDIF(SALOME_BUILD_DOC) INCLUDE(UsePyQt4) diff --git a/src/Tools/Verima/CMakeLists.txt b/src/Tools/Verima/CMakeLists.txt index a5e39bafe..269d6d9ae 100644 --- a/src/Tools/Verima/CMakeLists.txt +++ b/src/Tools/Verima/CMakeLists.txt @@ -16,8 +16,9 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # - -ADD_SUBDIRECTORY(Doc) +IF(SALOME_BUILD_DOC) + ADD_SUBDIRECTORY(Doc) +ENDIF(SALOME_BUILD_DOC) ADD_SUBDIRECTORY(CreeDocuments) IF(SALOME_BUILD_GUI) ADD_SUBDIRECTORY(Gui) diff --git a/src/Tools/YamsPlug/CMakeLists.txt b/src/Tools/YamsPlug/CMakeLists.txt index e75a744a3..7efe46b58 100644 --- a/src/Tools/YamsPlug/CMakeLists.txt +++ b/src/Tools/YamsPlug/CMakeLists.txt @@ -17,7 +17,9 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -ADD_SUBDIRECTORY(doc) +IF(SALOME_BUILD_DOC) + ADD_SUBDIRECTORY(doc) +ENDIF(SALOME_BUILD_DOC) INCLUDE(UsePyQt4) -- 2.39.2