* [PATCH] cmake.bbclass: adding extendable extra variable to root path
@ 2011-09-28 12:10 Andrew Gabbasov
2011-09-28 13:07 ` Otavio Salvador
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Gabbasov @ 2011-09-28 12:10 UTC (permalink / raw)
To: openembedded-core
Introducing a hook variable for various .conf files to add
extra path elements to cmake. For example, it can be used
in external toolchain conf file to add ${TOOLCHAIN_PATH}
to cmake root path search.
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
---
meta/classes/cmake.bbclass | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index ab23bed..432427e 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -26,6 +26,7 @@ OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CXXFLAGS} -DNDEBUG"
OECMAKE_RPATH ?= ""
OECMAKE_PERLNATIVE_DIR ??= ""
+OECMAKE_EXTRA_ROOT_PATH ?= ""
cmake_do_generate_toolchain_file() {
cat > ${WORKDIR}/toolchain.cmake <<EOF
@@ -42,7 +43,7 @@ set( CMAKE_CXX_FLAGS_RELEASE "${OECMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "CXXFLA
# only search in the paths provided so cmake doesnt pick
# up libraries and tools from the native build machine
-set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR})
+set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} )
set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cmake.bbclass: adding extendable extra variable to root path
2011-09-28 12:10 [PATCH] cmake.bbclass: adding extendable extra variable to root path Andrew Gabbasov
@ 2011-09-28 13:07 ` Otavio Salvador
0 siblings, 0 replies; 2+ messages in thread
From: Otavio Salvador @ 2011-09-28 13:07 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, Sep 28, 2011 at 09:10, Andrew Gabbasov
<andrew_gabbasov@mentor.com> wrote:
> Introducing a hook variable for various .conf files to add
> extra path elements to cmake. For example, it can be used
> in external toolchain conf file to add ${TOOLCHAIN_PATH}
> to cmake root path search.
>
> Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-28 13:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-28 12:10 [PATCH] cmake.bbclass: adding extendable extra variable to root path Andrew Gabbasov
2011-09-28 13:07 ` Otavio Salvador
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.