mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Building from a subfolder
Date: Tue, 8 Dec 2015 16:46:24 +0100	[thread overview]
Message-ID: <20151208154624.GA7548@pengutronix.de> (raw)
In-Reply-To: <E0CB834DD9BF7546A8B709A96E2ECAC3015B9EA9FB96@Exchange.scs-ad.scs.ch>

On Tue, Dec 08, 2015 at 04:40:22PM +0100, Dörfler Florian wrote:
> Hello All
> 
> I am writing a ptxdist make file for the dlib library for our project and have the following problem:
> 
> Dlib supports a cmake build, but there is no CMakeLists.txt in the top level directory. One is supposed to call cmake with a subfolder of the extracted archive to build the library.
> 
> So my question is: Is there a way to make ptxdist call cmake with a subfolder of the unpacked source?
> 
> I tried setting DLIB_DIR in dlib.make to the subfolder, but that would break the unpacking. I also tried to add a simple CMakeLists.txt to the root folder, but that changes the cmake variable CMAKE_SOURCE_DIR to the top level directory which breaks the cmake build.
> 
> I use ptxdist 2015.02.0

<PKG>_SUBDIR := something

PTXdist uses $(<PKG>_DIR)/$(<PKG>_SUBDIR) for cmake and make. By default
<PKG>_SUBDIR is empty and the toplevel directory is used.

Regards,
Michael


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2015-12-08 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 15:40 Dörfler Florian
2015-12-08 15:46 ` Michael Olbrich [this message]
2015-12-08 16:12   ` Dörfler Florian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151208154624.GA7548@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox