Skip to content
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

Closed
wants to merge 1 commit into from
Closed

buildsys: cmake install .pc file for pkg-config #222

wants to merge 1 commit into from

Conversation

leleliu008
Copy link

@leleliu008 leleliu008 commented Mar 29, 2021

modified libutf8proc.pc.in, changed from PREFIX to @PREFIX@, changed from VERSION to @VERSION@, beacuse @VAR@ can be replaced by CMake's configure_file command.

version.txt Outdated
@@ -0,0 +1 @@
2.6.1
Copy link
Member

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?

Copy link
Author

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)

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

Copy link

@tristan957 tristan957 Apr 1, 2021

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.

Copy link
Author

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.

Copy link
Member

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.

@diizzyy
Copy link

diizzyy commented Apr 14, 2021

I think something like this would reduce maintence even further, not by a huge margin though.
It would need to use the Makefile instead of configure.ac
https://github.com/libcheck/check/blob/master/CMakeLists.txt#L61

@stevengj
Copy link
Member

closedd by #224

@stevengj stevengj closed this Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants