games-arcade/performous: do not pass -Werror

Closes: https://bugs.gentoo.org/979178
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1469
Merges: https://codeberg.org/gentoo/gentoo/pulls/1469
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2026-09-26 09:52:59 +01:00
committed by Sam James
parent 355513e740
commit fed5a2d9f0
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,32 @@
remove -Werror
see https://bugs.gentoo.org/979178
--- a/game/CMakeLists.txt
+++ b/game/CMakeLists.txt
@@ -302,12 +302,6 @@ if(WIN32)
set_target_properties(performous PROPERTIES OUTPUT_NAME "Performous")
endif()
-if(WIN32 AND MSVC)
-# target_compile_options(performous PUBLIC /WX)
-else()
- target_compile_options(performous PUBLIC -Werror)
-endif()
-
# Generate config.hh
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.hh" "${CMAKE_CURRENT_BINARY_DIR}/config.hh" @ONLY)
target_include_directories(performous PRIVATE "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
--- a/testing/CMakeLists.txt
+++ b/testing/CMakeLists.txt
@@ -74,12 +74,6 @@ if(GTest_FOUND)
target_include_directories(performous_test PRIVATE ".." "../game" "${Performous_BINARY_DIR}/game")
- if(WIN32 AND MSVC)
-# target_compile_options(performous_test PUBLIC /WX)
- else()
- target_compile_options(performous_test PUBLIC -Werror)
- endif()
-
find_package(SDL2 REQUIRED)
if (TARGET SDL2::SDL2)
target_link_libraries(performous_test PRIVATE SDL2::SDL2)
@@ -76,6 +76,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.3.1-uncompressed_docs.patch
# use cblas implementation instead of restricting to openblas
"${FILESDIR}"/${PN}-1.3.1-cblas.patch
"${FILESDIR}"/${PN}-1.3.1-no_werror.patch
# PR pending https://github.com/performous/performous/pull/1105.patch
"${FILESDIR}"/${PN}-1.3.1-boost_1.89.patch
)