Skip to content

Conversation

tobim
Copy link
Contributor

@tobim tobim commented Jan 15, 2023

Continuation of #1221.

The last commit updates LibeventConfig.cmake to always get LIBEVENT_INSTALL_DIR(S) from the event::core target.
I took the liberty to fix the guard against multiple target definitions (although I believe it would be better to just remove it).

@paulmenzel
Copy link

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.

@tobim tobim force-pushed the use-gnu-install branch from 11e9cb0 to 77362b2 Compare April 6, 2023 12:26
Copy link

@paulmenzel paulmenzel left a 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.

jonringer and others added 4 commits May 14, 2023 22:43
- 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 azat force-pushed the use-gnu-install branch from 77362b2 to 16be768 Compare May 14, 2023 20:43
Copy link
Member

@azat azat left a 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.

@@ -13,8 +13,8 @@ endmacro()
macro(generate_pkgconfig LIB_NAME)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
set(includedir ${CMAKE_INSTALL_PREFIX}/include)
set(libdir ${CMAKE_INSTALL_LIBDIR})
Copy link
Member

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.

Copy link
Contributor Author

@tobim tobim May 15, 2023

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.

Copy link
Member

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

@azat azat mentioned this pull request May 14, 2023
21 tasks
@tobim tobim deleted the use-gnu-install branch May 15, 2023 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants