Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
92ffdd2c
Unverified
Commit
92ffdd2c
authored
Jul 07, 2022
by
Edward Thomson
Committed by
GitHub
Jul 07, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6333 from jpalus/pcre2-detection
cmake: drop posix dependency from pcre* detection
parents
50a1f637
636a2752
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
cmake/FindPCRE.cmake
+3
-4
cmake/FindPCRE2.cmake
+1
-1
No files found.
cmake/FindPCRE.cmake
View file @
92ffdd2c
...
@@ -16,19 +16,18 @@
...
@@ -16,19 +16,18 @@
# PCRE_FOUND - True if pcre found.
# PCRE_FOUND - True if pcre found.
# Look for the header file.
# Look for the header file.
find_path
(
PCRE_INCLUDE_DIR NAMES pcre
posix
.h
)
find_path
(
PCRE_INCLUDE_DIR NAMES pcre.h
)
# Look for the library.
# Look for the library.
find_library
(
PCRE_LIBRARY NAMES pcre
)
find_library
(
PCRE_LIBRARY NAMES pcre
)
find_library
(
PCRE_POSIX_LIBRARY NAMES pcreposix
)
# Handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if all listed variables are TRUE.
# Handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if all listed variables are TRUE.
include
(
FindPackageHandleStandardArgs
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
PCRE DEFAULT_MSG PCRE_LIBRARY PCRE_
POSIX_LIBRARY PCRE_
INCLUDE_DIR
)
find_package_handle_standard_args
(
PCRE DEFAULT_MSG PCRE_LIBRARY PCRE_INCLUDE_DIR
)
# Copy the results to the output variables.
# Copy the results to the output variables.
if
(
PCRE_FOUND
)
if
(
PCRE_FOUND
)
set
(
PCRE_LIBRARIES
${
PCRE_LIBRARY
}
${
PCRE_POSIX_LIBRARY
}
)
set
(
PCRE_LIBRARIES
${
PCRE_LIBRARY
}
)
set
(
PCRE_INCLUDE_DIRS
${
PCRE_INCLUDE_DIR
}
)
set
(
PCRE_INCLUDE_DIRS
${
PCRE_INCLUDE_DIR
}
)
else
(
PCRE_FOUND
)
else
(
PCRE_FOUND
)
set
(
PCRE_LIBRARIES
)
set
(
PCRE_LIBRARIES
)
...
...
cmake/FindPCRE2.cmake
View file @
92ffdd2c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
# PCRE2_FOUND - True if pcre found.
# PCRE2_FOUND - True if pcre found.
# Look for the header file.
# Look for the header file.
find_path
(
PCRE2_INCLUDE_DIR NAMES pcre2
posix
.h
)
find_path
(
PCRE2_INCLUDE_DIR NAMES pcre2.h
)
# Look for the library.
# Look for the library.
find_library
(
PCRE2_LIBRARY NAMES pcre2-8
)
find_library
(
PCRE2_LIBRARY NAMES pcre2-8
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment