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

笑着哭i 提交于 2019-12-23 05:13:08

问题


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.


来源:https://stackoverflow.com/questions/46268235/cmake-gui-resets-parameter-how-do-i-set-parameter-in-cmake-gui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!