Commit 6d58e0c8 authored by Brad King's avatar Brad King Committed by Code Review
Browse files

Merge topic 'reject-bad-module-request' into master

1c7d9a87 Reject application requests for missing modules
parents f087f3a6 1c7d9a87
......@@ -67,6 +67,18 @@ endmacro()
# <namespace>_LIBRARY_DIRS = Library search path (for outside dependencies)
# Do not name a module as the namespace.
macro(vtk_module_config ns)
set(_${ns}_MISSING ${ARGN})
if(_${ns}_MISSING)
list(REMOVE_ITEM _${ns}_MISSING ${VTK_MODULES_ENABLED})
endif()
if(_${ns}_MISSING)
set(msg "")
foreach(mod ${_${ns}_MISSING})
set(msg "${msg}\n ${mod}")
endforeach()
message(FATAL_ERROR "Requested modules not available:${msg}")
endif()
set(${ns}_DEFINITIONS "")
set(${ns}_LIBRARIES "")
set(${ns}_INCLUDE_DIRS "")
......
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