]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake: specify all install paths
authorRoss Burton <ross.burton@intel.com>
Tue, 14 Jan 2014 15:19:26 +0000 (15:19 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jan 2014 16:21:37 +0000 (16:21 +0000)
Specify the full set of install paths (bindir, libdir, etc) for packages that
use the GNUInstallDirs module, instead of just the prefix and leaving the rest
as default (which breaks with multilib).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass

index 3ac3fcc53dd3fc639171e6cb073b22152c434f92..7ff99841e24e2855ddb0ec427334ffbecc01cde2 100644 (file)
@@ -86,6 +86,15 @@ cmake_do_configure() {
          ${OECMAKE_SITEFILE} \
          ${S} \
          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+         -DCMAKE_INSTALL_BINDIR:PATH=${bindir} \
+         -DCMAKE_INSTALL_SBINDIR:PATH=${sbindir} \
+         -DCMAKE_INSTALL_LIBEXECDIR:PATH=${libexecdir} \
+         -DCMAKE_INSTALL_SYSCONFDIR:PATH=${sysconfdir} \
+         -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=${sharedstatedir} \
+         -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=${localstatedir} \
+         -DCMAKE_INSTALL_LIBDIR:PATH=${libdir} \
+         -DCMAKE_INSTALL_INCLUDEDIR:PATH=${includedir} \
+         -DCMAKE_INSTALL_DATAROOTDIR:PATH=${datadir} \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
          -DCMAKE_VERBOSE_MAKEFILE=1 \