Search code examples
macoscmakevtkcmake-gui

VTK Cmake VTK_BUILD_TESTING


My system is Mac and I'm trying to set VTK_BUILD_TESTING (Cmake option) to 'ON'. But the error is like the picture below. I've searched for the information. None of them are not working. What should I do to fix the error?

I downloaded VTK from (https://github.com/Kitware/VTK)

enter image description here


Solution

  • Set BUILD_TESTING to WANT instead of ON

    The modularization of VTK have been rewritten recently with more flexibility.

    • ON means that you want to enable it and all that it depends on, no matter what.
    • WANT means that you want to activate it and all dependencies that can be activated.

    See here for more info : https://public.kitware.com/pipermail/vtk-developers/2019-January/036648.html