-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wxwidgets] Fix find dependency pcre2 (#24874)
* [wxwidgets] Fix find dependency pcre2 * version * Use pcre2.pc * version * Fix double quotes * version * Use PC_PCRE2_LINK_LIBRARIES instead of target name to fix wx-config content * version * Set wxUSE_SECRETSTORE to FALSE to avoid introduce system pcre in wx-config * version
- Loading branch information
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/build/cmake/modules/FindPCRE2.cmake b/build/cmake/modules/FindPCRE2.cmake | ||
index a27693a..455675a 100644 | ||
--- a/build/cmake/modules/FindPCRE2.cmake | ||
+++ b/build/cmake/modules/FindPCRE2.cmake | ||
@@ -24,7 +24,10 @@ set(PCRE2_CODE_UNIT_WIDTH_USED "${PCRE2_CODE_UNIT_WIDTH}" CACHE INTERNAL "") | ||
|
||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(PC_PCRE2 QUIET libpcre2-${PCRE2_CODE_UNIT_WIDTH}) | ||
+set(PCRE2_LIBRARIES ${PC_PCRE2_LINK_LIBRARIES}) | ||
+set(PCRE2_INCLUDE_DIRS ${PC_PCRE2_INCLUDE_DIRS}) | ||
|
||
+if (0) | ||
find_path(PCRE2_INCLUDE_DIRS | ||
NAMES pcre2.h | ||
HINTS ${PC_PCRE2_INCLUDEDIR} | ||
@@ -36,6 +39,7 @@ find_library(PCRE2_LIBRARIES | ||
HINTS ${PC_PCRE2_LIBDIR} | ||
${PC_PCRE2_LIBRARY_DIRS} | ||
) | ||
+endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE2 REQUIRED_VARS PCRE2_LIBRARIES PCRE2_INCLUDE_DIRS VERSION_VAR PC_PCRE2_VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters