Skip to content

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

Description

@KrisThielemans

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).

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions