File cmake-duplicate-cxxflags-fix.patch of Package eureka

From f188b9bf30dbee5345b3ad24c4c2522826b4fef4 Mon Sep 17 00:00:00 2001
From: Fabian Greffrath <fabian@greffrath.com>
Date: Thu, 25 Jul 2024 11:52:34 +0200
Subject: [PATCH] remove duplicate CXXFLAGS from compiler invocation

---
 src/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7fac8738..4238aa3c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -361,7 +361,7 @@ if(MSVC)
 endif()
 
 if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
-    target_compile_options(eurekasrc PUBLIC "${CMAKE_CXX_FLAGS}" -Wall -Wextra -Werror
+    target_compile_options(eurekasrc PUBLIC -Wall -Wextra -Werror
                            -Wno-unused-parameter -Wno-missing-field-initializers -Wunused-variable)
 endif()
 if ( MSVC )
openSUSE Build Service is sponsored by