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

EXPORT_FUNCTIONS do_configure