Skip to content

Fix CMake Build#31

Open
stefanbuettner wants to merge 3 commits intogaschler:masterfrom
stefanbuettner:fix-cmake
Open

Fix CMake Build#31
stefanbuettner wants to merge 3 commits intogaschler:masterfrom
stefanbuettner:fix-cmake

Conversation

@stefanbuettner
Copy link
Copy Markdown

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
Copy Markdown
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.

Comment thread Modules/FindMPFR.cmake
# MPFR_INCLUDE_DIR - the GMP include directory
# MPFR_LIBRARIES - Libraries needed to use GMP

# Copyright (c) 2006, Laurent Montel, <montel@kde.org>
Copy link
Copy Markdown
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