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

Fix CMake Build #31

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

Conversation

stefanbuettner
Copy link

I tried to make a conan package out of the project but ran into some issues.

The first being, that libmpfr and libgmp cannot be used from a non-standard installation path which happens for example if they are also conan packages and reside in ~/.conan/data.
I tried to fix this by reenabling the GMP_INCLUDE_DIR and adding a FindMPFR.cmake in the same manner as the FindGMP.cmake.

Secondly, I could not install the project because the headers could not be found by the cmake installation directive. I fixed this by prepending ${CMAKE_CURRENT_SOURCE_DIR}.

Now it works on my system 😉

Cheers,
Stefan

If libmpfr is not installed under the system paths, the project cannot
be compiled. This way, libmpfr can be used from a non-standard location.
Copy link
Owner

@gaschler gaschler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, but pull request needs to be entirely written by you.

# MPFR_INCLUDE_DIR - the GMP include directory
# MPFR_LIBRARIES - Libraries needed to use GMP

# Copyright (c) 2006, Laurent Montel, <[email protected]>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I can only accept pull requests written by you and if you accept the license in the top directory.
(Since this does not need more logic than standard cmake find scripts it should be easy to write.)

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.

2 participants