Cmake gui resets parameter. How do I set parameter in cmake gui?

1.2k Views Asked by At

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:

enter image description here

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

There are 1 best solutions below

2
On BEST ANSWER

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.