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

When USE_SYSTEM_ITK=OFF, find_package can find an older version in the install directory #817

Open
KrisThielemans opened this issue May 2, 2023 · 1 comment

Comments

@KrisThielemans
Copy link
Member

I ran the SB previously, which installed ITK-4.13. Now it builds ITK-5.2. However, STIR's find_package(ITK) still find 4.13. Similar things might happen with other versioned packages.

Ideally we'd set ITK_DIR to the version we built/installed, but that's not so easy as we don't really know what version that will be if someone sets ITK_TAG.

At present, the only solutions are

  • install in a brand new location (recommended in any case)
  • remove the old ITK directory from the install directory (or at least it's lib/cmake files)
  • set ITK_DIR by hand for building STIR
@KrisThielemans
Copy link
Member Author

somewhat similar problem for ROOT, but as it doesn't install in a versioned directory, we can presumably set ROOT_DIR=${CMAKE_INSTALL_PREFIX}/cmake (note: no lib)

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

No branches or pull requests

1 participant