-
Notifications
You must be signed in to change notification settings - Fork 13
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
CMakeLists.txt: set LIB_INSTALL_DIR to /usr/local/lib which is common… #4
Conversation
This is only marginally better. Just drop all of these variables and use the GNUInstallDirs module shipped with CMake. |
Hi, oops, we're definitely using wrong directory. I aggree with @DerDakon that |
Thank you for the feedback. I added a commit that uses GNUInstallDirs that you could review. |
The idea would be to just remove the options entirely and use the variables from GNUInstallDirs, this already has code to cache those. |
3c00c4c
to
c5eaf8b
Compare
I applied the approach suggested by DerDakon and squashed the changes together. The branch should be ready to merge. |
CMakeLists.txt
Outdated
install(DIRECTORY ${INCLUDE_DIR} DESTINATION include) | ||
install(TARGETS ${PROJECT_NAME} DESTINATION lib COMPONENT library) | ||
install(DIRECTORY ${INCLUDE_DIR} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
install(TARGETS ${PROJECT_NAME} DESTINATION lib COMPONENT ${CMAKE_INSTALL_LIBDIR}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You replaced the wrong argument here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, fixed it. Thank you.
…llDirs module. Requires CMake 2.8.5 as the module was introduced in that version.
c5eaf8b
to
4d030c4
Compare
@slaufmann Thanks for your code and @DerDakon for your review! |
… among Linux systems
With the old value the *.so files got installed to /usr/local/include which is usually used for header files. A common directory for manually installed libraries is /usr/local/lib.