Commit 0fcae1fb authored by Haocheng LIU's avatar Haocheng LIU

Add a superbuild level option to control smtk documentation build

parent 6726dfa7
......@@ -115,10 +115,12 @@ function (superbuild_find_projects var)
pywin32)
endif ()
if (NOT DEVELOPER_MODE_smtk)
list(APPEND projects
smtkresourcemanagerstate)
if (NOT DEVELOPER_MODE_smtk)
list(APPEND projects
smtkresourcemanagerstate)
endif ()
# For now it's a convenient option to control smtk documentation
option(ENABLE_DOCUMENTATION "Enable documentation" ON)
option(USE_NONFREE_COMPONENTS "Enable the non-free parts of the superbuild" OFF)
mark_as_advanced(USE_NONFREE_COMPONENTS)
......
......@@ -20,6 +20,11 @@ if (vtkonly_enabled OR paraview_enabled)
set(smtk_enable_vtk ON)
endif ()
set (enable_smtk_doc always)
if (NOT ENABLE_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 +54,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