Skip to content
Snippets Groups Projects
Commit b0e58b4a authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: use if(IN_LIST) where possible

parent 17190bee
No related branches found
No related tags found
No related merge requests found
......@@ -249,8 +249,7 @@ if (vtk_required_modules OR vtk_unrecognized_modules)
"${vtk_required_modules};${vtk_unrecognized_modules}.")
endif ()
list(FIND vtk_modules "VTK::Python" vtk_python_idx)
if (NOT vtk_python_idx EQUAL "-1")
if ("VTK::Python" IN_LIST vtk_modules)
include(vtkModuleWrapPython)
vtk_module_python_default_destination(VTK_PYTHON_SITE_PACKAGES_SUFFIX)
endif ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment