Improved support to build libraries in shared mode
The changes from this pull request have been adopted by https://build.opensuse.org/package/show/home:rhabacker:branches:games/librealsense and add support for creating libraries in shared mode, which is required by Linux distributions such as openSUSE.
I did run pr_check.sh and api_check.sh under scripts.
Can one of the admins verify this patch?
- The main library already follows
BUILD_SHARED_LIBS. - I see no effort to handle the necessary export for MSVC.
- The main library already follows
BUILD_SHARED_LIBS.
There was a spelling error in the commit message, thanks for pointing out.
* I see no effort to handle the necessary export for MSVC.
The shared build support has been limited to unix like platforms.
Support is currently limited to unix-like platforms and is required by packages on build.opensuse.org.
For the creation of packages with shared libraries on Linux distributions such as openSUSE, it should also be noted that third-party packages such as curl and nlohmann_json are included in separate packages, see for example https://build.opensuse.org/projects/hardware/packages/librealsense/files/0001-third-party-use-nlohmann_json-from-system.patch?expand=1
Maybe it would be better to not put more topics in a single PR.
Maybe it would be better to not put more topics in a single PR.
See https://github.com/IntelRealSense/librealsense/pull/14155