Pass MP include header location detected at client configure time to clients

Authored by habacker on Mar 15 2018, 5:39 PM.

Description

Pass MP include header location detected at client configure time to clients

Summary:
Say you have a binary or self compiled MP development package (either gmp
or mpir) and alkimia package and made a binary packages for alkimia. Then
you unpack them into a different location and compiles kmymoney against
these development packages (which is probably the case reported for Mac
OsX).

The MP header will now be searched at the location where the MP
library has been installed on the first location because the location
is written - hard coded - into the installed cmake config file
LibAlkimiaXConfig.cmake. With this fix, cmake passes the MP header
location to the client, which has been detect on configuring the
client.

For compiling alkimia is it now sufficient to use MP_INCLUDE_DIR privatly.

Test Plan: compiled on linux

Reviewers: tbaumgart

Reviewed By: tbaumgart

Subscribers: christiand, ostroffjh, KMyMoney

Tags: KMyMoney

Differential Revision: https://phabricator.kde.org/D10043

Details