Skip to content

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

Closed
leleliu008 wants to merge 1 commit intoJuliaStrings:masterfrom
leleliu008:cmake-install-pc-file-for-pkg-config
Closed

buildsys: cmake install .pc file for pkg-config#222
leleliu008 wants to merge 1 commit intoJuliaStrings:masterfrom
leleliu008:cmake-install-pc-file-for-pkg-config

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