I am building a shared library on a linux system which is intended to be used in a project that will be deployed in a Docker on a server. This shared library uses openmp. I am therefore wondering if it is better (or more portable) to have
- openmp linked statically to my shared library
- I should install gcc properly in the Docker in order to have openmp found
- Distribute the .so of openmp together with my library
If option 1 is the best, can someone provide the right way to do this with cmake?
Aucun commentaire:
Enregistrer un commentaire