From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-180874-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 82374139083
	for <garchives@archives.gentoo.org>; Thu, 23 Nov 2017 18:46:51 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 17DFBE0DF3;
	Thu, 23 Nov 2017 18:46:47 +0000 (UTC)
Received: from mail-yb0-x231.google.com (mail-yb0-x231.google.com [IPv6:2607:f8b0:4002:c09::231])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A3409E0D2E
	for <gentoo-user@lists.gentoo.org>; Thu, 23 Nov 2017 18:46:46 +0000 (UTC)
Received: by mail-yb0-x231.google.com with SMTP id p19so7506668ybd.2
        for <gentoo-user@lists.gentoo.org>; Thu, 23 Nov 2017 10:46:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
        bh=IO1ZczNWjSBzPeYeBsz2LhGBQOxhlB7LH+sD/t/O9V0=;
        b=WIw994mw2DJ+jc/ZvVkB4cWD0GLK8CrLkLZ2iJXsbBR4L0E3yR7jVyqLxBjUnTGjUf
         QA6pfM16EQdmeQ9Gyfk2ttoUKeQ1Pv+sbFvHKPppEyaRhijz2w/oFc1rh2O6bfZzPMq1
         3ebcY+opz1lXt4LsZZ0wm04lOJJVI6vm/qTVJIfM+Q4x6pHJpHjyeOoAWyeuF+FBDEoZ
         FKkr+SHDdZlacbNnfhFNEbYoQpgPCQssyslxguGQp9aO9pDORXWJP/mvfeZa2EtEhzoR
         JEHteNEH7goe1IW20V2K+BIKSRI8GKU2HKH4jKXTnIIu7O0RAYR7NRF5SyLyMAuR23+O
         1pHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to;
        bh=IO1ZczNWjSBzPeYeBsz2LhGBQOxhlB7LH+sD/t/O9V0=;
        b=c0omx/H1QB8I3EnSf0voXVEwxgeWjtvie5KrJcdQF+KqJkqWE0+E/L/2VMPUeW7K43
         iVf/es+Lq3nP6uiymGCBOJxf3M0eclPLlVYri9lu9BNExAfjCCgPOCjuanwcXSp6+eZ4
         /XMZtUTuQ8O3wqyGcDXuB+5VCsQfw2mwZ6Vrqqi7iFus59o55GlFuqIISXWG4jmXg6ON
         SWEwos4ljszi6IQhpiXd7iJcOWCU5gCCxzUu5qvkK7EZMtp/QiBtLPVP1i7vCb4kHA27
         MhMFmcJHuzupxLJevD66JsucfjglQOxMEN2aoa4/KzHp3OuWkXkLO9WRshXmdXjNtcd9
         jn7Q==
X-Gm-Message-State: AJaThX6o5c074opaTJkwE2bfFCvMymbrssKFEMVZUipiMeXkGjOGxbPE
	+ZUxdmhgGRYjF85PGgs5RX7smZHVjKuPRkrF16nXYg==
X-Google-Smtp-Source: AGs4zMbPVaogMp5dZ5fHEA5WFy6m5YlDYkN+o5BrzwYq1ZgkeOa2GlAuq151jTxJvetdlN1gSj8RDW+pJAkpwB/m6zM=
X-Received: by 10.37.81.198 with SMTP id f189mr5134472ybb.522.1511462805470;
 Thu, 23 Nov 2017 10:46:45 -0800 (PST)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.129.231.8 with HTTP; Thu, 23 Nov 2017 10:46:44 -0800 (PST)
In-Reply-To: <BQVRZR7Y.SFA4MP6E.QJ5MAS4V@YMQLOLQY.6SN4FOWZ.G7M37ZFP>
References: <BQVRZR7Y.SFA4MP6E.QJ5MAS4V@YMQLOLQY.6SN4FOWZ.G7M37ZFP>
From: R0b0t1 <r030t1@gmail.com>
Date: Thu, 23 Nov 2017 12:46:44 -0600
Message-ID: <CAAD4mYhJ=HLxmdhFEhmFz8YvEwWg9F-u6qAeR-htp8d-ntjy9g@mail.gmail.com>
Subject: Re: [gentoo-user] Cmake problem - please help
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset="UTF-8"
X-Archives-Salt: a55f7a3b-1f1c-45ba-aa32-eca4dff5e5b7
X-Archives-Hash: 3d43972fc536fb67e4a006ef901e798a

Hello,

Firstly, you should file a bug, but that might not get it working as
quickly as you'd like.

On Thu, Nov 23, 2017 at 11:01 AM, Helmut Jarausch <jarausch@skynet.be> wrote:
> Hi,
>
> cmake is still a mystery to me.
>
> I like to add a  (non-Gentoo) package to my local overlay.
> This package is configured and built by 'cmake'
>

Which package?

> It needs and finds a package 'mumps' (from the Science Overlay)
> but linkage fails since the 'mumps' library needs another library
> (scalapack)
>
> So, how can I "tell" 'cmake' to link to libscalapack (there is a
> /usr/lib64/pkgconfig/refscalapack.pc file on my machine)
>
> But 'sci-libs/mumps' doesn't install a pkg-config file.
>
> I have done 'grep' through all CMakeLists.txt files,
> but I have no idea where the 'mumps' library is included.
>

The files are named like "FindXXXXX" and look like this:
https://github.com/OpenCMISS/cm/blob/master/cmake_modules/FindMUMPS.cmake.
If you edit them system-wide, you can likely get everything to build
via Portage.

You can also look for a "taget_link_library" directive in the
project's CMakeLists.txt and hardcode a path.

https://cmake.org/cmake/help/v3.0/command/target_link_libraries.html

> I'd be grateful to any hints and links (for 'cmake' dummies)
>

Pretending you want to configure and build your project with CMake is
probably the best option, though I have given you all that you should
need to fix the problem.

https://cmake.org/cmake-tutorial/


I would seriously consider Mr. Dang's solution. It is something I have
had to do quite a bit, especially as CMake is extremely opaque at the
system level. Brewlinux is new to me, I just do everything by hand.

Cheers,
     R0b0t1