summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-01-17 11:30:06 +0800
committerRobert Yang <liezhi.yang@windriver.com>2019-01-24 14:53:45 +0800
commit8e2e09ed285f3de458b09f165718f48060694e9d (patch)
treef684e72076781cf532566fe9174e484b802303d9
parenta4edfa4cf451bf412525887b5b24b9db6486ae97 (diff)
downloadopenembedded-core-contrib-8e2e09ed285f3de458b09f165718f48060694e9d.tar.gz
openembedded-core-contrib-8e2e09ed285f3de458b09f165718f48060694e9d.tar.bz2
openembedded-core-contrib-8e2e09ed285f3de458b09f165718f48060694e9d.zip
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 <liezhi.yang@windriver.com>
-rw-r--r--meta/recipes-devtools/cmake/cmake-native_3.12.2.bb1
1 files changed, 1 insertions, 0 deletions
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 2f4ecc4f4c..fedcf3d4bd 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}
}