* [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
* Re: [ptxdist] [PATCH] cmake: add toolchain sysroot to search directive
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
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Dahl @ 2012-02-07 11:46 UTC (permalink / raw)
To: ptxdist
Hei hei,
Am 2012-02-07 11:33, schrieb Josef Holzmayr:
> -SET(CMAKE_FIND_ROOT_PATH @SYSROOT@)
> +SET(CMAKE_FIND_ROOT_PATH @SYSROOT@ @SYSROOT_TOOLCHAIN@)
> SYSROOT="${PTXDIST_PATH_SYSROOT_ALL//:/ }" \
> + SYSROOT_TOOLCHAIN="${PTXDIST_SYSROOT_TOOLCHAIN//:/ }" \
Just out of curiosity: what do you need this for, or what did not work
without it? We use CMake for our own tools quite a lot and I can't
remember problems where I would have needed this.
Greets
Alex
--
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 ***
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] [PATCH] cmake: add toolchain sysroot to search directive
2012-02-07 11:46 ` Alexander Dahl
@ 2012-02-07 11:57 ` Josef Holzmayr
0 siblings, 0 replies; 3+ messages in thread
From: Josef Holzmayr @ 2012-02-07 11:57 UTC (permalink / raw)
To: ptxdist
Howdy!
Am Di 07 Feb 2012 12:46:08 CET schrieb Alexander Dahl:
> Am 2012-02-07 11:33, schrieb Josef Holzmayr:
>> -SET(CMAKE_FIND_ROOT_PATH @SYSROOT@)
>> +SET(CMAKE_FIND_ROOT_PATH @SYSROOT@ @SYSROOT_TOOLCHAIN@)
>
>> SYSROOT="${PTXDIST_PATH_SYSROOT_ALL//:/ }" \
>> + SYSROOT_TOOLCHAIN="${PTXDIST_SYSROOT_TOOLCHAIN//:/ }" \
>
> Just out of curiosity: what do you need this for, or what did not work
> without it? We use CMake for our own tools quite a lot and I can't
> remember problems where I would have needed this.
It's needed to build the gammu package I'm working on. (see
http://wammu.eu/gammu/). I will send it out once it has seen at least
some minimal testing and cleanup, because it has a huge load of build
options.
Greetz Joe
_____________________________________________________________
Josef Holzmayr
Dipl-Ing. (FH)
Entwicklung Embedded Devices / Software
Tel.: +49 8444 9204-48>
Fax: +49 8444 9204-50
holzmayr@rsi-elektrotechnik.de
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
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
--
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