diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-29 10:44:01 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 23:39:09 +0000 |
commit | c6d9f9342260de64b2c2fcd32cb12e8bdcee3c96 (patch) | |
tree | a04a950e27ace3b5c6b87bddd9f3f56a61b5ccb5 /meta/classes/cmake.bbclass | |
parent | 89b336f24cfee1a613f406668ad1a8407c2c4fe2 (diff) | |
download | poky-c6d9f9342260de64b2c2fcd32cb12e8bdcee3c96.tar.gz |
cmake.bbclass: Define LIB_SUFFIX
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.
(From OE-Core rev: 24f630ce36e803c54ad6cff00215abd0e7b77b77)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r-- | meta/classes/cmake.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 11ffb0d33f..a046daa6ea 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -174,6 +174,7 @@ cmake_do_configure() { | |||
174 | -DCMAKE_INSTALL_LIBDIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} \ | 174 | -DCMAKE_INSTALL_LIBDIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/')} \ |
175 | -DCMAKE_INSTALL_INCLUDEDIR:PATH=${@os.path.relpath(d.getVar('includedir'), d.getVar('prefix') + '/')} \ | 175 | -DCMAKE_INSTALL_INCLUDEDIR:PATH=${@os.path.relpath(d.getVar('includedir'), d.getVar('prefix') + '/')} \ |
176 | -DCMAKE_INSTALL_DATAROOTDIR:PATH=${@os.path.relpath(d.getVar('datadir'), d.getVar('prefix') + '/')} \ | 176 | -DCMAKE_INSTALL_DATAROOTDIR:PATH=${@os.path.relpath(d.getVar('datadir'), d.getVar('prefix') + '/')} \ |
177 | -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ | ||
177 | -DCMAKE_INSTALL_SO_NO_EXE=0 \ | 178 | -DCMAKE_INSTALL_SO_NO_EXE=0 \ |
178 | -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ | 179 | -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ |
179 | -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ | 180 | -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ |