Changing Install path CMAKE_INSTALL_PREFIX

Hi,

I built VTK 9.4.1. I would like to change install path however. What is the fastest/correct way to do that please ?

After generating new Cmake configuration, do I need to rebuild the whole VTK ? Or building ‘INSTALL’ project is enough ?

Thank you

Hello,

After changing any configuration value in CMake, you need to regenerate it in order to have an updated VS solution file. Doing a make install is enough if you’re using plain Makefiles, but we’re talking about Microsoft technology here. I wouldn’t be surprised if by building only the INSTALL target fails to incorporate the update. Close VS, change it, regenerate, open the solution in VS, build INSTALL and see what happens. If the binaries go to where you wanted, then it’s ok.

best,

PC