]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake.bbclass: Define LIB_SUFFIX
authorKhem Raj <raj.khem@gmail.com>
Sun, 29 Dec 2019 18:44:01 +0000 (10:44 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Dec 2019 23:38:12 +0000 (23:38 +0000)
This variable is used in lot of cmake based packages to denote libdir in
multilib environments, now a days there is a better way to include
GNUInstallDirs module but thats upto these packages to adopt. Defining
this helps compiling a bunch of recipes in extended layers when using
multilibbed builds.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass

index 11ffb0d33f2eee280d2f2150e7e923adb7792538..a046daa6eab1f478c4516fdda6b4190e3ef43716 100644 (file)
@@ -174,6 +174,7 @@ cmake_do_configure() {
          -DCMAKE_INSTALL_LIBDIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} \
          -DCMAKE_INSTALL_INCLUDEDIR:PATH=${@os.path.relpath(d.getVar('includedir'), d.getVar('prefix') + '/')} \
          -DCMAKE_INSTALL_DATAROOTDIR:PATH=${@os.path.relpath(d.getVar('datadir'), d.getVar('prefix') + '/')} \
+         -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
          -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \