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

exported STIRConfig.cmake can have problems with "too much" version info #1557

Open
KrisThielemans opened this issue Jan 15, 2025 · 1 comment
Assignees

Comments

@KrisThielemans
Copy link
Collaborator

KrisThielemans commented Jan 15, 2025

On @CateGascoigne 's Ubuntu 22.04, we followed https://github.com/SyneRBI/SIRF/wiki/Building-SIRF-and-CIL-with-conda. This gave an error when configuring SIRF where CMake complained about the line generated from

find_package(HDF5 @HDF5_VERSION@ QUIET COMPONENTS C CXX)

CMake Error at /home/cate/devel/buildConda/INSTALL/lib/cmake/STIR-6.2/STIRConfig.cmake:128 (find_package): 
  find_package called with invalid argument "1.14.4-3"

CMake was happy once we hand-edited the (exported) STIRConfig.cmake to use version 1.14.4.

We will therefore have to trim the version keyword(s).

@KrisThielemans KrisThielemans self-assigned this Jan 15, 2025
@KrisThielemans
Copy link
Collaborator Author

@paskino can you give this a go?

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