mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
cmake-native: prefer native sysroot libraries over host
Explicitly set CMAKE_LIBRARY_PATH so that find_library() looks in the native sysroot before the host. Also pass --verbose to configure which sets CMAKE_VERBOSE_MAKEFILE for detailed compile logs. (From OE-Core rev: 89b28990ff3ef8ac7a33a0a3f9177b9bd0e1530b) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
49d4477d53
commit
8aa8d14592
@@ -12,6 +12,7 @@ do_configure[cleandirs] = "${B}"
|
||||
|
||||
# Disable ccmake since we don't depend on ncurses
|
||||
CMAKE_EXTRACONF = "\
|
||||
-DCMAKE_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE} \
|
||||
-DBUILD_CursesDialog=0 \
|
||||
-DCMAKE_USE_SYSTEM_LIBRARIES=1 \
|
||||
-DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \
|
||||
@@ -21,7 +22,7 @@ CMAKE_EXTRACONF = "\
|
||||
"
|
||||
|
||||
do_configure () {
|
||||
${S}/configure --prefix=${prefix} -- ${CMAKE_EXTRACONF}
|
||||
${S}/configure --verbose --prefix=${prefix} -- ${CMAKE_EXTRACONF}
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
|
||||
Reference in New Issue
Block a user