Cmake gui resets parameter. How do I set parameter

2019-06-09 15:50发布

问题:

I am trying to build cmake after vtk has been built. I see that WITH_VTK is checked, so I try to change VTK_PATH inplace:

Unfortunately I get this message

VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK

in log window and also the variable resets after pressing Configure or Generate. I tried to clear cache from File menu. And also tried to 'Add Entry'. Nothing helps. Is there any instruction how to set parameter in this beautifull app?

回答1:

Ok, I've found out how to conquer it:

  1. clear cache
  2. Add Entry VTK_DIR pointing not to the bin/Debug folder, but to the C:\VTK-8.0.1-bin itself
  3. Now press Configure and Generate then.