]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake.bbclass: added version from OE + cross-compilation support
authorMarcin Juszkiewicz <hrw@openedhand.com>
Wed, 18 Jun 2008 08:35:24 +0000 (08:35 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Wed, 18 Jun 2008 08:35:24 +0000 (08:35 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4688 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/cmake.bbclass [new file with mode: 0644]

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
new file mode 100644 (file)
index 0000000..a9130f2
--- /dev/null
@@ -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