Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Lorensen
VTK
Commits
6d58e0c8
Commit
6d58e0c8
authored
May 04, 2012
by
Brad King
Committed by
Code Review
May 04, 2012
Browse files
Merge topic 'reject-bad-module-request' into master
1c7d9a87
Reject application requests for missing modules
parents
f087f3a6
1c7d9a87
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMake/vtkModuleAPI.cmake
View file @
6d58e0c8
...
...
@@ -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
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment