Commit 5f77d359 authored by Ben Boeckel's avatar Ben Boeckel

cmake: make cmb and smtk mutually exclusive

parent ad7a40dd
......@@ -281,6 +281,51 @@ endif()
# installed by "make install". Note that this is not always supported.
include(paraviewsdk OPTIONAL)
set(CMB_SUPERBUILD_MODE "CMB"
CACHE STRING "What to use the superbuild for")
set_property(CACHE CMB_SUPERBUILD_MODE
PROPERTY
STRINGS "CMB;SMTK;DEVELOPER")
mark_as_advanced(
ENABLE_cmb
ENABLE_cmb_BUILD_MODE
ENABLE_smtk
ENABLE_smtk_BUILD_MODE)
if (CMB_SUPERBUILD_MODE STREQUAL "CMB")
set_property(CACHE ENABLE_cmb
PROPERTY
VALUE ON)
set_property(CACHE ENABLE_cmb_BUILD_MODE
PROPERTY
VALUE SuperBuild)
set_property(CACHE ENABLE_smtk
PROPERTY
VALUE OFF)
elseif (CMB_SUPERBUILD_MODE STREQUAL "SMTK")
set_property(CACHE ENABLE_smtk
PROPERTY
VALUE ON)
set_property(CACHE ENABLE_smtk_BUILD_MODE
PROPERTY
VALUE SuperBuild)
set_property(CACHE ENABLE_cmb
PROPERTY
VALUE OFF)
elseif (CMB_SUPERBUILD_MODE STREQUAL "DEVELOPER")
set_property(CACHE ENABLE_cmb
PROPERTY
VALUE ON)
set_property(CACHE ENABLE_smtk
PROPERTY
VALUE OFF)
set_property(CACHE ENABLE_smtk_BUILD_MODE
PROPERTY
VALUE Developer)
else ()
message(FATAL_ERROR "Unrecognized superbuild mode: ${CMB_SUPERBUILD_MODE}")
endif ()
#call cmb process dependencies to get the ability to do a build
#for developers.
cmb_process_dependencies()
......
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