Commit 79923ee3 authored by Haocheng LIU's avatar Haocheng LIU Committed by Kitware Robot

Merge topic 'add-superbuild-option-smtk-build-doc'

dadb2aa2 Add a superbuild level option to control smtk documentation build
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: T.J. Corona's avatarT.J. Corona <tj.corona@kitware.com>
Merge-request: !471
parents 7de973da dadb2aa2
......@@ -20,6 +20,13 @@ if (vtkonly_enabled OR paraview_enabled)
set(smtk_enable_vtk ON)
endif ()
# A convenient option to control smtk documentation
option(ENABLE_SMTK_DOCUMENTATION "Enable smtk documentation" ON)
set (enable_smtk_doc always)
if (NOT ENABLE_SMTK_DOCUMENTATION)
set (enable_smtk_doc never)
endif()
if (UNIX AND NOT APPLE)
list(APPEND smtk_extra_cmake_args
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE)
......@@ -49,7 +56,7 @@ superbuild_add_project(smtk
CMAKE_ARGS
${smtk_extra_cmake_args}
-DBUILD_SHARED_LIBS:BOOL=ON
-DSMTK_BUILD_DOCUMENTATION:STRING=always
-DSMTK_BUILD_DOCUMENTATION:STRING=${enable_smtk_doc}
-DSMTK_ENABLE_OPENCV:BOOL=${opencv_enabled}
-DSMTK_ENABLE_QT_SUPPORT:BOOL=${qt_enabled}
-DSMTK_ENABLE_VTK_SUPPORT:BOOL=${smtk_enable_vtk}
......
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