diff options
author | Eric Lemanissier <eric.lemanissier@gmail.com> | 2022-11-29 09:15:58 +0000 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2022-12-03 15:41:35 +0100 |
commit | be4352cb841a7879f088d6d5e8bff85f5a01fe3e (patch) | |
tree | 2ac48cf83151db5f5723b1955b4a94e7f02409f5 /cmake/FindWrapSystemPCRE2.cmake | |
parent | 2e241d153738c9881c4e57a6b8f095cd1c514992 (diff) |
fix pcre2 detection
pcre2-16 is not the target name provided by the upstream Config file. It is PCRE2::16BIT.
https://github.com/PCRE2Project/pcre2/blob/2410fbe3869cab403f02b94caa9ab37ee9f5854b/cmake/pcre2-config.cmake.in#L122
Pick-to: 6.2 6.4
Change-Id: I89f167e11bf1c72c9fae474ddd12380636ac5df8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/FindWrapSystemPCRE2.cmake')
-rw-r--r-- | cmake/FindWrapSystemPCRE2.cmake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmake/FindWrapSystemPCRE2.cmake b/cmake/FindWrapSystemPCRE2.cmake index fee166bc55..28dc1d5d21 100644 --- a/cmake/FindWrapSystemPCRE2.cmake +++ b/cmake/FindWrapSystemPCRE2.cmake @@ -9,11 +9,7 @@ set(WrapSystemPCRE2_REQUIRED_VARS __pcre2_found) find_package(PCRE2 ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} COMPONENTS 16BIT QUIET) -# TODO: pcre2-16 is not the target name provided by the upstream Config file. It is PCRE2::16BIT. -# https://github.com/PCRE2Project/pcre2/blob/2410fbe3869cab403f02b94caa9ab37ee9f5854b/cmake/pcre2-config.cmake.in#L122 -# We don't strictly need to handle that though, because the pkg-config code path below still -# finds the correct libraries. -set(__pcre2_target_name "PCRE2::pcre2-16") +set(__pcre2_target_name "PCRE2::16BIT") if(PCRE2_FOUND AND TARGET "${__pcre2_target_name}") # Hunter case. set(__pcre2_found TRUE) |