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

Enable building primme with CMake (also under MSVC) #64

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

juanjosegarciaripoll
Copy link

  • Add CMakeLists.txt files for building the library and examples
  • Enable building with and without Fortran compilers
  • Enable compiling the library using Microsoft's C++ compiler.

Using MSVC++ is required because MSVC (the C compiler) does not support C99 complex types and, more important, generic mathematical functions. I made minimal changes. Fortunately primme is very well architected in this sense.

With these changes, I can now create a recipe for building primme into vcpkg and use it from arbitrary C++ projects. See https://github.com/juanjosegarciaripoll/vcpkg-ports and the subdirectory ports/primme for how simple it is to add it to this distribution.

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

Successfully merging this pull request may close these issues.

None yet

1 participant