vendredi 8 juillet 2016

How to build Armadillo C++ lib to statically link to OpenBLAS in non-standard location


I am trying to build Armadillo C++ library (version 6.6) and it does build fine. My problem, however, is that I have separately downloaded the source code for OpenBLAS and built that. I want Armadillo to use the OpenBLAS that I built locally, and i'd like it to statically link it into the Armadillo library that is produced.

So,

  1. How do i tell the Armadillo CMake to use a specific OpenBLAS?
  2. How do i tell the Armadillo CMake to statically link the above OpenBLAS so it produces a libarmadillo that contains my OpenBLAS in it?

Aucun commentaire:

Enregistrer un commentaire