From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Tl2Hb-00071D-GR for ptxdist@pengutronix.de; Tue, 18 Dec 2012 19:52:51 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1Tl2Hb-0005Hr-F5 for ptxdist@pengutronix.de; Tue, 18 Dec 2012 19:52:51 +0100 Date: Tue, 18 Dec 2012 19:52:51 +0100 From: Michael Olbrich Message-ID: <20121218185251.GT32091@pengutronix.de> References: <1355321557-14418-1-git-send-email-andreas.biessmann@corscience.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1355321557-14418-1-git-send-email-andreas.biessmann@corscience.de> Subject: Re: [ptxdist] [PATCH] toolchain-target.cmake.in: fix system includes Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Wed, Dec 12, 2012 at 03:12:37PM +0100, Andreas Bie=DFmann wrote: > When playing around with xenomai we found out that the additional added > xenomai includes had lower priority than the system includes (concrete the > PTXDIST_PATH_SYSROOT_PREFIX). This is due to the ptxdist cmake adoption = did > not export sysroot include path as system include path. To ensure a higher > priority than other 'system includes' append the ptxdist sysroot includes= at > the topmost place in the system includes search path. > = > Signed-off-by: Tim Niemeyer > Signed-off-by: Andreas Bie=DFmann > --- > config/cmake/toolchain-target.cmake.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/config/cmake/toolchain-target.cmake.in b/config/cmake/toolch= ain-target.cmake.in > index d316db5..6029e40 100644 > --- a/config/cmake/toolchain-target.cmake.in > +++ b/config/cmake/toolchain-target.cmake.in > @@ -17,7 +17,7 @@ SET(CMAKE_CXX_COMPILER @CXX@) > SET(CMAKE_FIND_ROOT_PATH @SYSROOT@) > = > # additional search directories > -include_directories( @INCLUDE_DIRECTORIES@) > +include_directories(BEFORE SYSTEM @INCLUDE_DIRECTORIES@) > link_directories( @LINK_DIRECTORIES@) I think with the latest changes in PTXdist these lines should be completely removed. Michael > # search for programs in the build host directories > -- = > 1.7.10.4 > = > = > -- = > ptxdist mailing list > ptxdist@pengutronix.de -- = 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