File: fix_Werror_replacement.patch

package info (click to toggle)
adios2 2.10.2%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,804 kB
  • sloc: cpp: 175,964; ansic: 160,510; f90: 14,630; yacc: 12,668; python: 7,275; perl: 7,126; sh: 2,850; lisp: 1,106; xml: 1,049; makefile: 583; lex: 557
file content (37 lines) | stat: -rw-r--r-- 1,345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Drew Parsons <dparsons@debian.org>
Date: Sun, 20 Aug 2023 21:56:03 +0200
Subject: fix_Werror_replacement

Forwarded: https://github.com/ornladios/ADIOS2/pull/4260

fixes testing CMakefiles,
which want to remove -Werror but leave any arguments to it hanging in
place.

https://github.com/ornladios/ADIOS2/issues/3775
---
 testing/install/CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testing/install/CMakeLists.txt b/testing/install/CMakeLists.txt
index a3ad532..9798f9e 100644
--- a/testing/install/CMakeLists.txt
+++ b/testing/install/CMakeLists.txt
@@ -84,13 +84,13 @@ set_tests_properties(Install.Setup PROPERTIES
 
 # 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)