Skip to content

Commit

Permalink
Fix VTK deps logic for plugins (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored May 14, 2023
1 parent 2b956e4 commit abca2cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/f3dPlugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ The `NAME` argument is required. The arguments are as follows:
macro(f3d_plugin_build)
cmake_parse_arguments(F3D_PLUGIN "FREEDESKTOP;FORCE_STATIC" "NAME;DESCRIPTION;VERSION" "VTK_MODULES;ADDITIONAL_RPATHS;MIMETYPE_XML_FILES;CONFIGURATION_DIRS" ${ARGN})

if (NOT F3D_PLUGIN_VTK_MODULES)
# Make sure we are requiring at least one module
list(APPEND F3D_PLUGIN_VTK_MODULES "CommonCore")
endif ()

find_package(VTK 9.0 REQUIRED COMPONENTS ${F3D_PLUGIN_VTK_MODULES})

if(F3D_PLUGIN_FORCE_STATIC OR F3D_PLUGINS_STATIC_BUILD)
Expand Down

0 comments on commit abca2cc

Please sign in to comment.