Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CMAKE_INSTALL_LIBDIR for library installation path #291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eclipseo
Copy link

Warning: only tested on Linux.

We need to be able to use path other than /usr/lib. RPM based distro generally /usr/lib64, and Debian based do their thing too. Using GNUInstallDirs allow determining the correct path.

@Krakonos
Copy link
Member

Doesn't compile on Windows. It may have issues on OSX, but I didn't test. I suggest wrapping this into:

 if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

(note that if (UNIX) is probably not applicable here since it forces GNU paths into BSD-like systems. Not that it's a big concern, since I'm not aware of anybody actually using it on a BSD except for OSX.

@eclipseo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants