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

Have MPIR provide a target that can be used in CMake based build #3897

Open
horenmar opened this issue Jul 13, 2018 · 5 comments
Open

Have MPIR provide a target that can be used in CMake based build #3897

horenmar opened this issue Jul 13, 2018 · 5 comments
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@horenmar
Copy link
Contributor

Can vcpkg's MPIR port also provide an interface target to link against? It would make using it to replace gmplib when porting things to Windows much easier.

@degski
Copy link

degski commented Jul 13, 2018

Just use mpir as if it were gmp, that's the idea. mpir.h provides the same declarations as gmp.h. If all is well, there's even a gmp.h in the mpir-install.

Caveat: mpir is built generically by vcpkg (thus useless, c-code only), it is gonna be slooooooooooooow.

@horenmar
Copy link
Contributor Author

I am using it that way (I am porting sharpSAT to Windows and it uses gmpxx.h all over), but I want something that lets me use modern CMake, so I don't have to put together special include and link paths from vcpkg location and then apply those conditionally.

@degski
Copy link

degski commented Jul 13, 2018

mpir provides the same c-interface (and the same C++ bindings) as gmp, so don't count on that.

On the other hand, there is mp++, which works over gmp and mpir, I like it.

@degski
Copy link

degski commented Jul 13, 2018

... but I want something that lets me use modern CMake, so I don't have to put together special include and link paths from vcpkg location ...

What platform are you on.?

@horenmar
Copy link
Contributor Author

Linux and Windows. On Linux we use system-provided gmplib if possible, on Windows we use vcpkg to provide MPIR on AppVeyor.

@JackBoosY JackBoosY added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Mar 1, 2019
@LilyWangL LilyWangL assigned PhoebeHui and unassigned AlvinZhangH Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

No branches or pull requests

7 participants