From da3040f29760899db17b4ec1cd0fd238897229e0 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 18 Jun 2008 08:35:24 +0000 Subject: cmake.bbclass: added version from OE + cross-compilation support git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4688 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/classes/cmake.bbclass | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta/classes/cmake.bbclass (limited to 'meta') diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass new file mode 100644 index 000000000..a9130f2a0 --- /dev/null +++ b/meta/classes/cmake.bbclass @@ -0,0 +1,11 @@ +DEPENDS += " cmake-native " + +# We want the staging and installing functions from autotools +inherit autotools + +cmake_do_configure() { + cmake . -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \ + -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} +} + +EXPORT_FUNCTIONS do_configure -- cgit v1.2.3