dev-libs/intel-metrics-library: fix users cflags and make version

Closes: https://bugs.gentoo.org/951052
Closes: https://bugs.gentoo.org/964603
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2026-05-15 16:21:06 +02:00
parent 9cfed1fd4f
commit cc22d8918e
2 changed files with 22 additions and 4 deletions
@@ -0,0 +1,19 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@
#
#============================ end_copyright_notice =============================
-cmake_minimum_required (VERSION 3.5)
+cmake_minimum_required (VERSION 3.14)
#################################################################################
# PROJECT
@@ -622,7 +622,6 @@
-Werror=format-security # treats format string security warnings as errors
-Wno-sequence-point # disable undefined behavior warning
-Wno-comment # allow multi-line comments
- -Ofast # optimize code in the favor of speed
-fstack-protector-strong # enables stack protection for vulnerable functions that contain: An array of any size and type
-Wno-unused-but-set-parameter # disable parameter set but not used warning
)
@@ -21,7 +21,6 @@ KEYWORDS="amd64"
DEPEND="x11-libs/libdrm"
RDEPEND="${DEPEND}"
src_prepare() {
sed -e '/-Werror/d' -i CMakeLists.txt || die
cmake_src_prepare
}
PATCHES=(
"${FILESDIR}/${PN}-1.0.209.1-cmake.patch"
)