diff options
author | Jan Palus <jpalus@fastmail.com> | 2022-06-27 10:04:23 +0200 |
---|---|---|
committer | Jan Palus <jpalus@fastmail.com> | 2022-07-07 10:50:08 +0200 |
commit | 636a2752180180132270d23a84ece7114ea331c6 (patch) | |
tree | 9a3925287f0969ec9e738fe82ac4d066961a1644 /cmake/FindPCRE.cmake | |
parent | 3847522e86e9c65be674f1372cefefdbfbe9ba2b (diff) | |
download | libgit2-636a2752180180132270d23a84ece7114ea331c6.tar.gz |
cmake: drop posix dependency from pcre* detection
since f585b12 neither PCRE nor PCRE2 backends rely on POSIX regex, so
reflect it in library detection logic
Diffstat (limited to 'cmake/FindPCRE.cmake')
-rw-r--r-- | cmake/FindPCRE.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmake/FindPCRE.cmake b/cmake/FindPCRE.cmake index 3a7cfad91..02e7edce1 100644 --- a/cmake/FindPCRE.cmake +++ b/cmake/FindPCRE.cmake @@ -16,19 +16,18 @@ # PCRE_FOUND - True if pcre found. # Look for the header file. -find_path(PCRE_INCLUDE_DIR NAMES pcreposix.h) +find_path(PCRE_INCLUDE_DIR NAMES pcre.h) # Look for the library. 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. 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. if(PCRE_FOUND) - set(PCRE_LIBRARIES ${PCRE_LIBRARY} ${PCRE_POSIX_LIBRARY}) + set(PCRE_LIBRARIES ${PCRE_LIBRARY}) set(PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR}) else(PCRE_FOUND) set(PCRE_LIBRARIES) |