Skip to content

Re-apply "Use standard CMake constructs to export the targets. (#260)" #739

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

Merged
merged 4 commits into from
Apr 8, 2025

Conversation

NWilson
Copy link
Member

@NWilson NWilson commented Mar 31, 2025

Additionally, I have attempted to clean up some CMake issues to make the package's build interface cleaner, in particular, avoiding polluting the parent directory's include path with our config.h file (if PCRE2 is being included as a subdirectory).

This re-adds changes from Theodore's commit
def175f, and partially reverts changes from Carlo's commit 92d56a1.

Fixes #115

…ts. (#260)"

Additionally, I have attempted to clean up some CMake issues to make the
package's build interface cleaner, in particular, avoiding polluting the
parent directory's include path with our config.h file (if PCRE2 is
being included as a subdirectory).

This re-adds changes from Theodore's commit
def175f, and partially reverts changes
from Carlo's commit 92d56a1.

---

Co-authored-by: Theodore Tsirpanis <[email protected]>
@NWilson NWilson force-pushed the user/niwilson/cmake-exports branch from e0b3217 to 93215ed Compare March 31, 2025 21:45
@NWilson NWilson requested a review from Copilot April 1, 2025 10:46
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR re-applies a previous commit that updated how CMake exports targets and cleans up certain CMake issues related to the build interface.

  • Reinstates standard target export handling.
  • Cleans up the include path pollution by config.h for subdirectory builds with PCRE2.
  • Enhances the CI workflows by adding tests for both the CMake install and build interfaces, and by explicitly setting the build type to Release in certain workflows.

Reviewed Changes

Copilot reviewed 2 out of 19 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/dev.yml Adds a hack to rename target files to allow RunManifestTest to pass.
.github/workflows/build.yml Adds new steps to test the CMake install and build interfaces and sets the build type to Release.
Files not reviewed (17)
  • CMakeLists.txt: Language not supported
  • Makefile.am: Language not supported
  • README: Language not supported
  • cmake/pcre2-config-version.cmake.in: Language not supported
  • cmake/pcre2-config.cmake.in: Language not supported
  • doc/html/README.txt: Language not supported
  • maint/.gitignore: Language not supported
  • maint/cmake-tests/build-interface/CMakeLists.txt: Language not supported
  • maint/cmake-tests/build-interface/main.c: Language not supported
  • maint/cmake-tests/install-interface/CMakeLists.txt: Language not supported
  • maint/cmake-tests/install-interface/main.c: Language not supported
  • maint/manifest-cmakeinstall-freebsd: Language not supported
  • maint/manifest-cmakeinstall-linux: Language not supported
  • maint/manifest-cmakeinstall-macos: Language not supported
  • maint/manifest-cmakeinstall-solaris: Language not supported
  • maint/manifest-cmakeinstall-windows: Language not supported
  • maint/manifest-tarball: Language not supported

@NWilson NWilson force-pushed the user/niwilson/cmake-exports branch 4 times, most recently from b13776d to f4eea83 Compare April 8, 2025 13:48
@NWilson NWilson force-pushed the user/niwilson/cmake-exports branch from f4eea83 to 5516409 Compare April 8, 2025 15:56
@NWilson NWilson merged commit e62c0e0 into master Apr 8, 2025
35 checks passed
@NWilson NWilson deleted the user/niwilson/cmake-exports branch April 8, 2025 16:37
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.

A clean and modern CMake build system
1 participant