Use GNUInstallDirs for mapping installation directories#1221
Use GNUInstallDirs for mapping installation directories#1221jonringer wants to merge 3 commits intolibevent:masterfrom
Conversation
azat
left a comment
There was a problem hiding this comment.
LGTM.
But this breaks the export test - https://github.com/libevent/libevent/runs/4050571079?check_suite_focus=true
Can you please take a look?
385e2f0 to
ea73125
Compare
|
The test failures were coming from the tests not being able to find I removed the surrounding code which deletes the file and then regenerates it for the test cases. The tests were able to pass locally. |
|
|
||
| function(gen_package_config forinstall) | ||
| if(${forinstall}) | ||
| set(CONFIG_FOR_INSTALL_TREE 1) |
There was a problem hiding this comment.
So, CONFIG_FOR_INSTALL_TREE can be removed from cmake/LibeventConfig.cmake.in?
There was a problem hiding this comment.
I don't see why not. It's being installed to ${CMAKE_BINARY_DIR}, similar to the other .cmake files
There was a problem hiding this comment.
But if we will remove CONFIG_FOR_INSTALL_TREE code, then LIBEVENT_INCLUDE_DIRS will be incorrect.
libevent/cmake/LibeventConfig.cmake.in
Lines 113 to 147 in 89505f8
P.S. Sorry for the delay.
|
What is the status on this PR? It would be nice to add this to the next release of libevent. I don't mind trying to take over the PR. |
I think you can continue it. You can base you patches on top of this to preserve author, as long as you not completely change the patch. Thanks! |
|
sorry, I keep dropping things due to how many balls I'm trying to juggle. If you would like to take over, please do so! I'll be happy to review :) |
|
@tristan957 are you going to finish this? |
|
I have it on my list, but if someone else gets to it before I do even better. |
- Don't destroy cmake file between test case invocations
3bdb5e8 to
fce6e20
Compare
|
This is still a problem - #1221 (comment) Though by some reason our test for export does not shows the problem. |
|
Merged in #1397 |
Was iterating on this package for Nixpkgs, and found it difficult to consume the
.cmakeconfigurations asget_filename_component(_INSTALL_PREFIX "${LIBEVENT_CMAKE_DIR}/../../.." ABSOLUTE)was not always true.This should be a no-op for most libevent package maintainers.