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)
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)
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 setsITK_TAG
.At present, the only solutions are
lib/cmake
files)ITK_DIR
by hand for building STIR