Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

cmake: Use GNUInstallDirs instead of hardcoding lib destination #102

Merged
merged 1 commit into from
May 16, 2018

Conversation

vadorovsky
Copy link
Contributor

@vadorovsky vadorovsky commented May 9, 2018

The comon practice in cmake to allow to specify the libdir is
using GNUInstallDirs and the CMAKE_INSTALL_LIBDIR variable.
One of the usecases is setting /usr/lib64 as the destination dir
for libraries.

@isaachier
Copy link
Contributor

I understand the problem. Let me see if this is the suggested fix.

@isaachier
Copy link
Contributor

I see https://cmake.org/pipermail/cmake/2013-July/055374.html. Do you mind opening a pull request to change https://github.com/forexample/package-example/blob/master/Foo/CMakeLists.txt? I use this project as a basis for my CMake installs and the maintainer is a CMake expert, so I'm sure that is a better venue to discuss this.

@vadorovsky
Copy link
Contributor Author

@isaachier Sure, I will do it soon.

@vadorovsky
Copy link
Contributor Author

@isaachier Specyfing libdir is already done in that repo:

forexample/package-example@d76608b

I can change the name of the variable to CMAKE_INSTALL_LIBDIR to be consistent with the project example you are using.

@isaachier
Copy link
Contributor

OK great so let me withdraw the issue I posted there and review this.

@isaachier
Copy link
Contributor

Do you mind redoing the fix similar to that package to use GNUInstallDirs throughout?

@vadorovsky vadorovsky force-pushed the cmake-libdir branch 2 times, most recently from bdf9cf7 to ba74c83 Compare May 14, 2018 11:00
The comon practice in cmake to allow to specify the libdir is
using GNUInstallDirs and the CMAKE_INSTALL_LIBDIR variable.
One of the usecases is setting /usr/lib64 as the destination dir
for libraries.

Signed-off-by: Michal Rostecki <mrostecki@suse.com>
@vadorovsky vadorovsky changed the title cmake: Use LIB_INSTALL_DIR instead of hardcoding lib destination cmake: Use GNUInstallDirs instead of hardcoding lib destination May 14, 2018
@vadorovsky
Copy link
Contributor Author

vadorovsky commented May 14, 2018

@isaachier It's done now.

Copy link
Contributor

@isaachier isaachier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@isaachier isaachier merged commit a758f0c into jaegertracing:master May 16, 2018
mikz added a commit to 3scale/s2i-openresty that referenced this pull request Jun 7, 2018
mikz added a commit to 3scale/s2i-openresty that referenced this pull request Jun 7, 2018
@vadorovsky vadorovsky deleted the cmake-libdir branch October 1, 2018 09:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants