summaryrefslogtreecommitdiffstats
path: root/meta/classes/cmake.bbclass
diff options
context:
space:
mode:
authorKevin Tian <kevin.tian@intel.com>2010-07-26 13:14:13 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-27 22:51:34 -0700
commitea3cfbaf265797950e5eb41f5b886861c880597c (patch)
tree306fcd8206b2c34a1015317f2a9d28628bcc97a9 /meta/classes/cmake.bbclass
parent106de1f41cae0160de8cb060ea18d581403b3d08 (diff)
downloadpoky-ea3cfbaf265797950e5eb41f5b886861c880597c.tar.gz
cmake: only search root directory for FIND_***
default cmake behavior for FIND_***, is to first search listed directories prefixed with CMAKE_FIND_ROOT_PATH, and if not found then go to unprefixed directories. This is not desired as build system may be referenced. this commit refine the search path only on prefixed directories, and thus fix libmusicbrains build failure on some systems Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r--meta/classes/cmake.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 019999165f..6adc43f057 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -7,7 +7,10 @@ EXTRA_OECMAKE ?= ""
7 7
8cmake_do_configure() { 8cmake_do_configure() {
9 cmake . -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \ 9 cmake . -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -Wno-dev \
10 -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} ${EXTRA_OECMAKE} 10 -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_HOST} \
11 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
12 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
13 ${EXTRA_OECMAKE}
11} 14}
12 15
13EXPORT_FUNCTIONS do_configure 16EXPORT_FUNCTIONS do_configure