Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Mumps targets from external projects (not online) #3

Closed
dariomangoni opened this issue Feb 3, 2021 · 2 comments
Closed

Import Mumps targets from external projects (not online) #3

dariomangoni opened this issue Feb 3, 2021 · 2 comments

Comments

@dariomangoni
Copy link
Contributor

Hi,
given the quite complex CMake project with lots of dependencies it would be greate if there was a proper and smart way to import Mumps targets from external projects without fetching online. What is the best way?
My external project build with Visual Studio and I wouldn't make it compile with Ninja.

Can you provide a little snippet for it?

I don't see any typical file of CMake Packages so I assume there is none.

@scivision
Copy link
Owner

I made the exported targets in the latest GIt commit to main branch. they install under ${CMAKE_INSTALL_PREFIX}/lib/cmake

To use this from your own project, having previously built Mumps and used cmake --install build you can then use from another CMake project like in the examples/CMakeLIsts.txt here,

Pretending the examples/ is your other project:

cd examples
cmake -Bbuild -DMUMPS_ROOT=~/mylibs/mumps
cmake --build build

@scivision scivision transferred this issue from another repository Apr 30, 2021
@scivision
Copy link
Owner

To compile on Windows, I would recommend using Intel oneAPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants