[OE-core] [PATCH] cmake.bbclass: remove ${prefix} assignment

Kevron Rees kevron.m.rees at intel.com
Sat Nov 14 01:24:10 UTC 2015


CMAKE_INSTALL_PREFIX has a different semantic meaning than ${prefix}[1].  cmake treats
CMAKE_INSTALL_PREFIX the same as the DESTDIR environment variable.  Setting
CMAKE_INSTALL_PREFIX to ${prefix} is inappropriate.

This will likely break a lot of cmake recipes that have do_post_install hacks to get
around this bug.

[1] - https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html

Signed-off-by: Kevron Rees <kevron.m.rees at intel.com>
---
 meta/classes/cmake.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index ae3cc02..b7d5950 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -108,7 +108,7 @@ cmake_do_configure() {
 	cmake \
 	  ${OECMAKE_SITEFILE} \
 	  ${OECMAKE_SOURCEPATH} \
-	  -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+	  -DCMAKE_INSTALL_PREFIX:PATH="" \
 	  -DCMAKE_INSTALL_BINDIR:PATH=${bindir} \
 	  -DCMAKE_INSTALL_SBINDIR:PATH=${sbindir} \
 	  -DCMAKE_INSTALL_LIBEXECDIR:PATH=${libexecdir} \
-- 
2.1.4




More information about the Openembedded-core mailing list