how to link the generated static lib to my visual studio project
Ning-Li-Ambition opened this issue · 2 comments
Ning-Li-Ambition commented
hi there,
I use visual studio on windows with intel oneAPI Fortran.
I have never used ninja before, but used cmake to install libraries on windows. my question is, if I follow your instructions, what will I get? A static library? And could I link it to my personal visual studio project?
Thanks
scivision commented
Visual Studio will probably not work to build MUMPS, it never has for me at least.
I haven't tried using the static lib files in a Visual Studio project.
With default CMake options and oneAPI on Windows:
cmake -B build -G Ninja
-- Building for: Ninja
-- The C compiler identification is IntelLLVM 2022.0.0 with MSVC-like command-line
-- The Fortran compiler identification is IntelLLVM 2022.0.0 with MSVC-like command-line
...
cmake --build build
under build/ directory I get static libraries:
dmumps.lib
mumps_common.lib
pord.lib
smumps.lib