summaryrefslogtreecommitdiffstats
path: root/meta/classes/cmake.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r--meta/classes/cmake.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
new file mode 100644
index 0000000000..a9130f2a05
--- /dev/null
+++ b/meta/classes/cmake.bbclass
@@ -0,0 +1,11 @@
1DEPENDS += " cmake-native "
2
3# We want the staging and installing functions from autotools
4inherit autotools
5
6cmake_do_configure() {
7 cmake . -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \
8 -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST}
9}
10
11EXPORT_FUNCTIONS do_configure