Closed redeboer closed 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.
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
Currently, ComPWA requires you to have sourced
thisroot.sh
of your ROOT installation, or setROOTSYS
in order tofind_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.