Commit dcbcd3d2 authored by Ben Boeckel's avatar Ben Boeckel

cmb: check that at least cmb or smtk is enabled

parent e8f1d8d3
...@@ -65,6 +65,13 @@ function (superbuild_find_projects var) ...@@ -65,6 +65,13 @@ function (superbuild_find_projects var)
PARENT_SCOPE) PARENT_SCOPE)
endfunction () endfunction ()
function (superbuild_sanity_check)
if (NOT smtk_enabled AND NOT cmb_enabled)
message(FATAL_ERROR
"At least one of the following projects must be enabled: cmb, smtk.")
endif ()
endfunction ()
function (superbuild_add_packaging) function (superbuild_add_packaging)
if (WIN32) if (WIN32)
set(generators set(generators
......
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