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)
|