Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMake flag to use custom VTK build #121

Open
ktbolt opened this issue Mar 21, 2023 · 2 comments
Open

Add CMake flag to use custom VTK build #121

ktbolt opened this issue Mar 21, 2023 · 2 comments
Assignees

Comments

@ktbolt
Copy link
Contributor

ktbolt commented Mar 21, 2023

It is sometimes required (e.g. on HPC clusters) to build svSolver using a custom VTK build. CMake may not be able to identify the correct VTK build so we need to use

find_package(VTK PATHS VTK_BULD_PATH REQUIRED)

Currently a user must edit the svSolver/Code/CMake/SimVascularExternals.cmake, comment some CMake commands and add the find_package command. It would be better to set the VTK_BULD_PATH variable from the cmake command line.

@ktbolt ktbolt self-assigned this Mar 21, 2023
@ktbolt
Copy link
Contributor Author

ktbolt commented Mar 21, 2023

I have added the SV_VTK_LOCAL_PATH CMake flag to set the VTK build directory from the command line using for example

cmake -DSV_USE_LOCAL_VTK=ON -DSV_VTK_LOCAL_PATH=$HOME/vtk/install/ ..

This works on MacOS and Red Hat using a VTK build without graphics.

@ktbolt
Copy link
Contributor Author

ktbolt commented Mar 21, 2023

I also updated the svSolver README to describe how to use this flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant