mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] cmake: add toolchain sysroot to search directive
@ 2012-02-07 10:33 Josef Holzmayr
  2012-02-07 11:46 ` Alexander Dahl
  0 siblings, 1 reply; 3+ messages in thread
From: Josef Holzmayr @ 2012-02-07 10:33 UTC (permalink / raw)
  To: ptxdist

[-- Attachment #1: Type: text/plain, Size: 1693 bytes --]

Signed-off-by: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de>
---
 config/cmake/toolchain-target.cmake.in   |    2 +-
 scripts/lib/ptxd_make_cmake_toolchain.sh |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/config/cmake/toolchain-target.cmake.in b/config/cmake/toolchain-target.cmake.in
index d316db5..e97fe6c 100644
--- a/config/cmake/toolchain-target.cmake.in
+++ b/config/cmake/toolchain-target.cmake.in
@@ -14,7 +14,7 @@ SET(CMAKE_C_COMPILER			@CC@)
 SET(CMAKE_CXX_COMPILER			@CXX@)
 
 # where is the target environment
-SET(CMAKE_FIND_ROOT_PATH		@SYSROOT@)
+SET(CMAKE_FIND_ROOT_PATH		@SYSROOT@ @SYSROOT_TOOLCHAIN@)
 
 # additional search directories
 include_directories(			@INCLUDE_DIRECTORIES@)
diff --git a/scripts/lib/ptxd_make_cmake_toolchain.sh b/scripts/lib/ptxd_make_cmake_toolchain.sh
index 4848475..7a3302a 100644
--- a/scripts/lib/ptxd_make_cmake_toolchain.sh
+++ b/scripts/lib/ptxd_make_cmake_toolchain.sh
@@ -33,6 +33,7 @@ ptxd_make_cmake_toolchain_target() {
 	CXX="$(which "${CXX}")" \
 	\
 	SYSROOT="${PTXDIST_PATH_SYSROOT_ALL//:/ }" \
+	SYSROOT_TOOLCHAIN="${PTXDIST_SYSROOT_TOOLCHAIN//:/ }" \
 	INCLUDE_DIRECTORIES="${sysroot_prefix//://include }" \
 	LINK_DIRECTORIES="${sysroot_prefix//://lib }" \
 	\
-- 
1.7.8.3


-- 
_____________________________________________________________
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Gesch�ftsf�hrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548



[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-07 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07 10:33 [ptxdist] [PATCH] cmake: add toolchain sysroot to search directive Josef Holzmayr
2012-02-07 11:46 ` Alexander Dahl
2012-02-07 11:57   ` Josef Holzmayr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox