1 |
Hello, |
2 |
|
3 |
Firstly, you should file a bug, but that might not get it working as |
4 |
quickly as you'd like. |
5 |
|
6 |
On Thu, Nov 23, 2017 at 11:01 AM, Helmut Jarausch <jarausch@××××××.be> wrote: |
7 |
> Hi, |
8 |
> |
9 |
> cmake is still a mystery to me. |
10 |
> |
11 |
> I like to add a (non-Gentoo) package to my local overlay. |
12 |
> This package is configured and built by 'cmake' |
13 |
> |
14 |
|
15 |
Which package? |
16 |
|
17 |
> It needs and finds a package 'mumps' (from the Science Overlay) |
18 |
> but linkage fails since the 'mumps' library needs another library |
19 |
> (scalapack) |
20 |
> |
21 |
> So, how can I "tell" 'cmake' to link to libscalapack (there is a |
22 |
> /usr/lib64/pkgconfig/refscalapack.pc file on my machine) |
23 |
> |
24 |
> But 'sci-libs/mumps' doesn't install a pkg-config file. |
25 |
> |
26 |
> I have done 'grep' through all CMakeLists.txt files, |
27 |
> but I have no idea where the 'mumps' library is included. |
28 |
> |
29 |
|
30 |
The files are named like "FindXXXXX" and look like this: |
31 |
https://github.com/OpenCMISS/cm/blob/master/cmake_modules/FindMUMPS.cmake. |
32 |
If you edit them system-wide, you can likely get everything to build |
33 |
via Portage. |
34 |
|
35 |
You can also look for a "taget_link_library" directive in the |
36 |
project's CMakeLists.txt and hardcode a path. |
37 |
|
38 |
https://cmake.org/cmake/help/v3.0/command/target_link_libraries.html |
39 |
|
40 |
> I'd be grateful to any hints and links (for 'cmake' dummies) |
41 |
> |
42 |
|
43 |
Pretending you want to configure and build your project with CMake is |
44 |
probably the best option, though I have given you all that you should |
45 |
need to fix the problem. |
46 |
|
47 |
https://cmake.org/cmake-tutorial/ |
48 |
|
49 |
|
50 |
I would seriously consider Mr. Dang's solution. It is something I have |
51 |
had to do quite a bit, especially as CMake is extremely opaque at the |
52 |
system level. Brewlinux is new to me, I just do everything by hand. |
53 |
|
54 |
Cheers, |
55 |
R0b0t1 |