Skip to content

Add pkg-config file - #2253

Merged
nlohmann merged 2 commits into
nlohmann:developfrom
ericonr:pkgconf
Jul 9, 2020
Merged

nlohmann merged 2 commits into
nlohmann:developfrom
ericonr:pkgconf

Conversation

@ericonr

@ericonr ericonr commented Jul 8, 2020

Copy link
Copy Markdown
Contributor

Add pkg-config generation to the CMake build system, functionally the same as the pkg-config generated by Meson. This PR is picking up on the work from #1701 .


Pull request checklist

@ericonr
ericonr requested a review from nlohmann as a code owner July 8, 2020 20:18
@coveralls

coveralls commented Jul 8, 2020

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 251fce8 on ericonr:pkgconf into 0306525 on nlohmann:develop.

@nlohmann nlohmann left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please rename the file to pkg-config.pc.in, put it into the cmake folder, and adjust the CMakeLists.txt accordingly?

palmer-dabbelt and others added 2 commits July 9, 2020 03:59
The meson builds install a pkg-config file, but the cmake builds don't.
This adds a pkg-config file to the cmake builds that is functionally
equivalent to the one generated from meson.
@ericonr

ericonr commented Jul 9, 2020

Copy link
Copy Markdown
Contributor Author

Done! Would you prefer I used CMAKE_CURRENT_SOURCE_DIR or PROJECT_SOURCE_DIR ?

@nlohmann

nlohmann commented Jul 9, 2020

Copy link
Copy Markdown
Owner

I think CMAKE_CURRENT_SOURCE_DIR is less surprising.

@nlohmann nlohmann left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@nlohmann nlohmann self-assigned this Jul 9, 2020
@nlohmann nlohmann added this to the Release 3.8.1 milestone Jul 9, 2020
@nlohmann
nlohmann merged commit 75d5d05 into nlohmann:develop Jul 9, 2020
@nlohmann

nlohmann commented Jul 9, 2020

Copy link
Copy Markdown
Owner

Thanks!

@nlohmann

nlohmann commented Jul 9, 2020

Copy link
Copy Markdown
Owner

🔖 Release item

This issue/PR will be part of the next release of the library. This template helps preparing the release notes.

Type

  • ✨ New Feature
  • 🐛 Bug Fix
  • ⚡️ Improvement
  • 🔨 Further Change
  • 🔥 Deprecated function

Description


@nlohmann

Copy link
Copy Markdown
Owner

FYI: The DESCRIPTION keyword for project() was only added in CMake 3.9. I will revert that part as we only required CMake 3.1.

@ericonr

ericonr commented Jul 10, 2020

Copy link
Copy Markdown
Contributor Author

I see, thanks!

@eli-schwartz

Copy link
Copy Markdown
Contributor

Somehow this managed to completely break make install when running tests, see #2318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants