Skip to content

Switch pkgconfig and cmake files to cmake libdir - #47

Merged
Coralesoft merged 3 commits into
cryptopp-modern:mainfrom
kwizart:cmake_libdir
Jul 11, 2026
Merged

Switch pkgconfig and cmake files to cmake libdir#47
Coralesoft merged 3 commits into
cryptopp-modern:mainfrom
kwizart:cmake_libdir

Conversation

@kwizart

@kwizart kwizart commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

As cryptopp is a binary library, theses files should be distributed under a binary specific directory.

Side note: any reason to break compatibility with pkgconfig ? previous files where libcryptopp.pc and was renamed to cryptopp-modern.pc breaking compatibility ? (so it requires to change all underlying application in order to support pkgconfig for no reason).

@Coralesoft
Coralesoft merged commit 26e03ce into cryptopp-modern:main Jul 11, 2026
43 checks passed
@Coralesoft

Copy link
Copy Markdown
Collaborator

Thanks, this is the right change. The exported CMake targets and generated .pc file contain library-directory paths, so lib/cmake and lib/pkgconfig are where they belong.

CI is green on the head commit. I’ll squash on merge so the test updates land with the install-path change.

You’re also right about the pkg-config name. Renaming libcryptopp.pc to cryptopp-modern.pc broke existing pkg-config libcryptopp users. I’ll restore libcryptopp.pc in a follow-up.

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.

2 participants