summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-20 21:32:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-21 10:03:24 +0900
commit10acf645022fc899bbaba8753ec52993f64616e5 (patch)
tree3fcca8fd7e11823865c931177e6a59866ce858c4 /ConfigureChecks.cmake
parent2e1cbea341ab2ff740bf82e59ceaabb228b00ff7 (diff)
downloadkbarcode-10acf645.tar.gz
kbarcode-10acf645.zip
Use libpcre2 instead of libpcre
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 38bd16e351b79c74556195529d72bb7423f3912c)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 6805bd8..cc77191 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -52,9 +52,9 @@ if( WITH_JAVASCRIPT )
set( USE_JAVASCRIPT false )
endif( WITH_JAVASCRIPT )
-#### check for pcre
+#### check for pcre2
-pkg_search_module( PCRE libpcre )
-if( NOT PCRE_FOUND )
- tde_message_fatal( "pcre (2.8.x) is required but was not found on your system." )
-endif( NOT PCRE_FOUND )
+pkg_check_modules( PCRE2 libpcre2-8 libpcre2-posix )
+if( NOT PCRE2_FOUND )
+ tde_message_fatal( "pcre2 is required but was not found on your system." )
+endif( )