ComPWA / ComPWA-legacy

[deprecated] C++ back-end for the Common Partial Wave Analysis framework
https://compwa.github.io/legacy
Other
9 stars 9 forks source link

Added ROOT_DIR option for cmake #271

Closed redeboer closed 4 years ago

redeboer commented 4 years ago

Currently, ComPWA requires you to have sourced thisroot.sh of your ROOT installation, or set ROOTSYS in order to find_package(ROOT). If you have several installations of ROOT, this could be problematic, and in general it's not so clean to require users to have sourced things first.

Now you can use cmake -DROOT_DIR=... to specify which installation you want.

redeboer commented 4 years ago

This change is based on https://root.cern.ch/how/integrate-root-my-project-cmake, but does not seem to work properly. See also #272.

redeboer commented 4 years ago

This change is based on https://root.cern.ch/how/integrate-root-my-project-cmake, but does not seem to work properly. See also #272.

Okay, fixed by removing cmake/Modules/FindROOT.cmake