fix linking of CbmSimSteer library
CbmSimSteer requires libfreetype, which is not automatically found by cmake on MacOsX. There is already a fix for this problem in sim/steer/CMakeLists.txt
Unfortunately, this fix doesn't help when CbmSimSteer is requested by another library (for example, by CbmL1 ) via cmake dependency list. I checked the cbmroot code, the CbmSimSteer is never linked from anywhere, probably due to this problem.
I think I found the solution: I moved your fix for libfreetype from sim/steer/CMakeLists.txt to the main CMakeLists.txt. This seems to work.
Why do I need to link CbmSimSteer library at all: I need to know if a particular detector is present in the current CBM setup. The right place to get this information is CbmSetup::Instance() which is a member of the CbmSimSteer.
Please have a look!