Skip to contentSkip to conversation

cmake-native: prefer native sysroot libraries over host

PATCH New Ross Burton 1 participant 1 message Sep 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-devtools/cmake/cmake-native_3.6.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/cmake/cmake-native_3.6.1.bb +2 -1
index a301ae6..aec0d64 100644
@@ -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() {
Signature · 1 line
2.8.1