diff --git a/CTestCustom.cmake b/CTestCustom.cmake
index 1044ebd8971b967cdb5161856f461e778fbd4d14..6bf6109bc7d06fdf0e61a588b415ef63db84a141 100644
--- a/CTestCustom.cmake
+++ b/CTestCustom.cmake
@@ -75,7 +75,8 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
 
         # -- warnings from macosx test machines
         "ld: warning: dylib.*was built for newer macOS version.*than being linked"
-        ".*^.*"
+        ".*\\^.*"
+        "warning.*generated."
 
         # -- don't show pragma message warnings
         "Compiling CBM Configuration"