summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
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( )