-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Use GNUInstallDirs for mapping installation directories (continued) #1397
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
Conversation
78b3fde to
11e9cb0
Compare
|
Thank you for your patch. It’d be great, if you could write a little more elaborate commit messages, as some people might lack the CMake knowledge. |
paulmenzel
left a comment
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.
Looks good from my side.
- Don't destroy cmake file between test case invocations
CMake config files don't need any logic to detect the location of installed headers or DSOs, because these locations are already determined at project configuration time. They also don't need to distinguish between build and install trees, because that is already handled by the generated `LibeventTargets-*.cmake` files.
azat
left a comment
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.
Thank a lot for continue it! LGTM.
| set(exec_prefix ${CMAKE_INSTALL_PREFIX}) | ||
| set(libdir ${CMAKE_INSTALL_PREFIX}/lib) | ||
| set(includedir ${CMAKE_INSTALL_PREFIX}/include) | ||
| set(libdir ${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.
Likely here ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} should be used. I will fix this.
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 might want to use ${CMAKE_INSTALL_FULL_LIBDIR} instead.
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.
Didn't know about this, thanks, will try
Continuation of #1221.
The last commit updates
LibeventConfig.cmaketo always getLIBEVENT_INSTALL_DIR(S)from theevent::coretarget.I took the liberty to fix the guard against multiple target definitions (although I believe it would be better to just remove it).