# Blas dependency of cmake target ROOT::TMVA

**URL:** <https://root-forum.cern.ch/t/blas-dependency-of-cmake-target-root-tmva/30536>\
**Category:** TMVA\
**Tags:** cmake\
**Created:** [September 4, 2018, 9:06am UTC](https://root-forum.cern.ch/t/blas-dependency-of-cmake-target-root-tmva/30536 "2018-09-04T09:06:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pseyfert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pseyfert/32/12287_2.png) [@pseyfert](https://root-forum.cern.ch/u/pseyfert)\
**Post date:** [September 4, 2018, 9:06am UTC](https://root-forum.cern.ch/t/blas-dependency-of-cmake-target-root-tmva/30536/1 "2018-09-04T09:06:03Z")

</div>

Building our software against the lcg dev version dev4 we noticed that libTMVA.so (`ldd /cvmfs/sft-nightlies.cern.ch/lcg/nightlies/dev4/<day>/ROOT/v6-14-00-patches/x86_64-centos7-gcc8-opt/lib/libTMVA.so`) depends on `libopenblas.so.0`.  
Yet checking `/cvmfs/sft-nightlies.cern.ch/lcg/nightlies/dev4/<day>/ROOT/v6-14-00-patches/x86_64-centos7-gcc8-opt/cmake/ROOTConfig-targets.cmake` I only see the ROOT internal dependencies:

```auto
set_target_properties(ROOT::TMVA PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
  INTERFACE_LINK_LIBRARIES "ROOT::Core;ROOT::RIO;ROOT::Hist;ROOT::Tree;ROOT::TreePlayer;ROOT::MLP;ROOT::Minuit;ROOT::XMLIO"
)

```

Now it appears that using the [view](https://gitlab.cern.ch/pseyfert/huhcmakehuh/blob/master/.gitlab-ci.yml#L18) the dependency does not lead to any issues, but when I try a minimal project that links against `libTMVA.so` outside the view in an MWE, I fail at link time [[CI](https://gitlab.cern.ch/pseyfert/huhcmakehuh/-/jobs/2070305)].

So I’m wondering, shouldn’t `ROOTConfig-targets.cmake` publish the dependency on `BLAS`?

PS: not sure if related [https://sft.its.cern.ch/jira/browse/ROOT-9217](https://sft.its.cern.ch/jira/browse/ROOT-9217) 3.

---

<div class="post-metadata">

**Author:** ![pseyfert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pseyfert/32/12287_2.png) [@pseyfert](https://root-forum.cern.ch/u/pseyfert)\
**Post date:** [September 16, 2018, 9:21am UTC](https://root-forum.cern.ch/t/blas-dependency-of-cmake-target-root-tmva/30536/3 "2018-09-16T09:21:48Z")

</div>

pppppppping @amadio?

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [September 16, 2018, 1:41pm UTC](https://root-forum.cern.ch/t/blas-dependency-of-cmake-target-root-tmva/30536/4 "2018-09-16T13:41:02Z")

</div>

Sorry, I did not see this before. It does seem like TMVA has a problem and should pass on interface flags for linking against openblas. I will take a closer look tomorrow and fix it. Cheers,
