diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 00c1acf833a2e1420d92f09c9af530fdade011c4..2cfad678667d25d60f497330ff3b34efc663fa4f 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--------------------------------------------------------------------------------------------