Skip to content

Commit

Permalink
vtk_module_config: Check if VTK_MODULES_DIR is defined
Browse files Browse the repository at this point in the history
This helps diagnosing problems.
  • Loading branch information
jcfr committed Oct 26, 2017
1 parent 66757c5 commit 18009b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMake/vtkModuleAPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ endmacro()
# Do not name a module as the namespace.
macro(vtk_module_config ns)

# Sanity check
if(NOT DEFINED VTK_MODULES_DIR)
message(FATAL_ERROR "VTK_MODULES_DIR is not defined !")
endif()

# Determine list of available VTK-modules by scanning the VTK_MODULES_DIR.
set(VTK_MODULES_AVAILABLE)
file(GLOB config_files RELATIVE "${VTK_MODULES_DIR}" "${VTK_MODULES_DIR}/*.cmake")
Expand Down

0 comments on commit 18009b1

Please sign in to comment.