From cfee7c87c00cf55dcfb2b2a9559078daf8a56e4e Mon Sep 17 00:00:00 2001
From: sftnight <sftnight@macphsft25.dyndns.cern.ch>
Date: Wed, 6 Nov 2024 14:47:57 +0100
Subject: [PATCH] swig: move to pcre2 for new version of swig

otherwise uses pcre2 from system, fails on macos
---
 externals/CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 00c1acf833..2cfad67866 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -1645,11 +1645,11 @@ LCGPackage_Add(
   swig
   URL ${GenURL}/swig-<VERSION>.tar.gz
   CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> 
-                                           --with-pcre-prefix=${pcre_home} PCRE_LIBS=${pcre_home}/lib/libpcre.a
+                                           --with-pcre-prefix=${pcre2_home} PCRE_LIBS=${pcre2_home}/lib/libpcre.a
                                            --with-boost=${Boost_home}
-  BUILD_COMMAND ${MAKE} CPPFLAGS=-I${pcre_home}/include
+  BUILD_COMMAND ${MAKE} CPPFLAGS=-I${pcre2_home}/include
   INSTALL_COMMAND ${MAKE} install
-  DEPENDS pcre Python Boost
+  DEPENDS pcre2 Python Boost
  )
 
 #---Davix--------------------------------------------------------------------------------------------
-- 
GitLab