From: Robert Yang Date: Thu, 24 Jan 2019 06:57:28 +0000 (+0800) Subject: cmake-native: Add --enable-ccache to configure options X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~15548 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=815056cb595c0f57b4d8867387420fe3bb28bdb2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cmake-native: Add --enable-ccache to configure options cmake-native requires --enable-ccache to enable ccache, target recipe doesn't need this since it is already handled by cmake.bbclass. Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb b/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb index 2f4ecc4f4ce..fedcf3d4bdb 100644 --- a/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb +++ b/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb @@ -29,6 +29,7 @@ CMAKE_EXTRACONF = "\ do_configure () { ${S}/configure --verbose --prefix=${prefix} \ ${@oe.utils.parallel_make_argument(d, '--parallel=%d')} \ + ${@bb.utils.contains('CCACHE', 'ccache ', '--enable-ccache', '', d)} \ -- ${CMAKE_EXTRACONF} }