Skip to content

Fixed the HepMC3Config.cmake to prevent from the multiple calls to find_package()

Andrii Verbytskyi requested to merge fix_the_config into master

As reported by @purrejol, configuration of Geomodel https://geomodel.web.cern.ch/home/ with the current master results in an error "cannot create target "HepMC3All" because another target with the same name already exists. ".

The reason is that Geomodel calls find_package(HepMC3) twice in different subdirectories. While this is not a good practice, it makes sense to have minimal protection in the HepMC3 config against it.

Would be nice if @ellert or @lpickeri would have a look.

Merge request reports

Loading