cmake not using VTK_MODULE_ENABLE_VTK_GuiSupportQt or VTK_MODULE_ENABLE_VTK_GuiSupportQtQuick?

I’m building VTK-9.4.2, on MacOS Sequoia.
After downloading the source I issue:

cmake -DVTK_MODULE_ENABLE_VTK_GuiSupportQt=YES -DVTK_MODULE_ENABLE_VTK_GuiSupportQtQuick=YES -DVTK_MODULE_ENABLE_VTK_ViewsQt=YES ..

When cmake completes it issues warning:

CMake Warning:
  Manually-specified variables were not used by the project:

    VTK_MODULE_ENABLE_VTK_GuiSupportQt
    VTK_MODULE_ENABLE_VTK_GuiSupportQtQuick

Libraries corresponding to those modules are not built.
What am I doing wrong?
Thanks!

You need to enable VTK_GROUP_ENABLE_Qt

You need to ensure the case is correct. The variables should be:

VTK_MODULE_ENABLE_VTK_GUISupportQt and VTK_MODULE_ENABLE_VTK_GUISupportQtQuick.

You shouldn’t need the VTK_GROUP_ENABLE_Qt option unless you need the additional vtk Qt modules like RenderingQt and ViewsQt as well.

1 Like

Thanks @sankhesh , looks like I answered too fast :slight_smile: