-
Notifications
You must be signed in to change notification settings - Fork 146
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
buildsys: cmake install .pc file for pkg-config #222
buildsys: cmake install .pc file for pkg-config #222
Conversation
version.txt
Outdated
@@ -0,0 +1 @@ | |||
2.6.1 |
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.
I'd rather not have this file — it's yet another place we'll have to update when we bump the version. Why can't the make variables be used?
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.
OK. I will remove this file.
CMakeLists.txt
Outdated
set(INCLUDEDIR include) | ||
set(VERSION 2.6.1) | ||
configure_file(libutf8proc.pc.in libutf8proc.pc @ONLY) | ||
install(FILES ${CMAKE_BINARY_DIR}/libutf8proc.pc DESTINATION lib/pkgconfig) |
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.
Hardcoded destination feels wrong. You should use GNUInstallDirs so downstream users don't have to patch lib
to be lib64
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.
Kind of dependent on #159 I guess.
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 you for your suggestion. I have changed it.
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.
I've merged #159, so one can use that now.
I think something like this would reduce maintence even further, not by a huge margin though. |
closedd by #224 |
modified
libutf8proc.pc.in
, changed fromPREFIX
to@PREFIX@
, changed fromVERSION
to@VERSION@
, beacuse@VAR@
can be replaced by CMake'sconfigure_file
command.