wgois / OIS

Official OIS repository. Object oriented Input System
https://wgois.github.io/OIS/
zlib License
254 stars 86 forks source link

CMakeLists.txt: Respect user's libdir #69

Closed thesamesam closed 3 years ago

thesamesam commented 3 years ago

Without this patch, on systems where /usr/lib64/ is used (e.g. Gentoo), libraries are installed to /usr/lib/ despite the standard CMake arguments being passed.

It's not exactly clear what the canonical way is to take libdir parameters in CMake, but GNUInstallDirs mostly handles it for the *NIX case.

To be minimally invasive here, I've only changed the *NIX path and aligned as much of the logic as possible.

Signed-off-by: Sam James sam@gentoo.org

Summary of changes Honour CMAKE_INSTALL_LIBDIR to ensure we install libraries to the correct path on different Linux distributions which choose a different lib/lib64 layout.

Affected backends Build system (CMake)

Ybalrid commented 3 years ago

Thanks, seems good. Gonna merge that now.

thesamesam commented 3 years ago

Thanks a bunch @Ybalrid!