Commit 2fe9a925 authored by Ben Boeckel's avatar Ben Boeckel

cmake: only error about SMTK's submodule if SMTK is enabled

parent 41abfcb3
......@@ -102,7 +102,9 @@ function (superbuild_sanity_check)
message(FATAL_ERROR
"At least one of the following projects must be enabled: cmb, smtk.")
endif ()
if (smtk_SOURCE_SELECTION STREQUAL "from_cmb" AND NOT DEVELOPER_MODE_smtk AND
if (smtk_enabled AND
smtk_SOURCE_SELECTION STREQUAL "from_cmb" AND
NOT DEVELOPER_MODE_smtk AND
(NOT cmb_enabled OR DEVELOPER_MODE_cmb))
message(FATAL_ERROR
"SMTK cannot use CMB's SMTK submodule without CMB being enabled and built by the superbuild.")
......
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