]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake: don't inherit autotools
authorRoss Burton <ross.burton@intel.com>
Tue, 16 Feb 2016 16:27:19 +0000 (16:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Feb 2016 07:39:21 +0000 (07:39 +0000)
autotools was inherited for some functions some time ago, but now all it's using
it for explicitly is autotools_do_install(), which is basically just "make
install".  Invoke that directly and we can remove the inherit autotools.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass

index 70e8677fc1bfab652f8f93a9147fd23c53f1732b..22cd61eb060398802195e25a8094115e11a664e2 100644 (file)
@@ -7,9 +7,6 @@ B = "${WORKDIR}/build"
 # We need to unset CCACHE otherwise cmake gets too confused
 CCACHE = ""
 
-# We want the staging and installing functions from autotools
-inherit autotools
-
 # C/C++ Compiler (without cpu arch/tune arguments)
 OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`"
 OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^ ]*\).*/\1/'`"
@@ -132,7 +129,7 @@ cmake_do_compile()  {
 
 cmake_do_install() {
        cd ${B}
-       autotools_do_install
+       oe_runmake 'DESTDIR=${D}' install
 }
 
 EXPORT_FUNCTIONS do_configure do_compile do_install do_generate_toolchain_file