Index: adios2/testing/install/CMakeLists.txt
===================================================================
--- adios2.orig/testing/install/CMakeLists.txt	2023-08-19 21:21:05.299599214 +0200
+++ adios2/testing/install/CMakeLists.txt	2023-08-20 21:48:33.505590604 +0200
@@ -84,13 +84,13 @@
 
 # Remove -Wall -Werror in this scope
 if(CMAKE_C_FLAGS)
-  string(REPLACE "-Wall"    " " CMAKE_C_FLAGS   ${CMAKE_C_FLAGS})
-  string(REPLACE "-Werror"  " " CMAKE_C_FLAGS   ${CMAKE_C_FLAGS})
+  string(REPLACE "-Wall "    " " CMAKE_C_FLAGS   ${CMAKE_C_FLAGS})
+  string(REPLACE "-Werror "  " " CMAKE_C_FLAGS   ${CMAKE_C_FLAGS})
 endif()
 
 if(CMAKE_CXX_FLAGS)
-  string(REPLACE "-Wall"    " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
-  string(REPLACE "-Werror"  " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+  string(REPLACE "-Wall "    " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+  string(REPLACE "-Werror "  " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
 endif()
 
 add_install_cmake_test(C)
