blob: 6adc43f0574a0618b51e0e2e5557ffbd50add53d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | DEPENDS += " cmake-native "
# We want the staging and installing functions from autotools
inherit autotools
EXTRA_OECMAKE ?= ""
cmake_do_configure() {
     cmake . -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \
     -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} \
     -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
     -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
     ${EXTRA_OECMAKE}
}
EXPORT_FUNCTIONS do_configure
 |