summaryrefslogtreecommitdiff
path: root/classes/cmake.bbclass
blob: faa4768d90ee559e2ff1371dce7caa3adc9a1861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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} \
     ${EXTRA_OECMAKE}
}

EXPORT_FUNCTIONS do_configure