gentoo-ebuilds/app-misc/i2bits/files/i2bits-0.1.0-cmake4.patch
NHOrus ed63861dde
app-misc/i2bits: fix build with CMake 4
Also rationalize seds into diff that works with cmake eclass

Closes: https://bugs.gentoo.org/951901
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41237
Signed-off-by: Sam James <sam@gentoo.org>
2025-03-25 04:23:19 +00:00

15 lines
397 B
Diff

Prepare build for CMake 4.
Fold and rationalize seds
https://bugs.gentoo.org/951901
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,7 @@
-cmake_minimum_required(VERSION 2.8)
+project(i2bits)
+cmake_minimum_required(VERSION 3.5)
#set(CMAKE_VERBOSE_MAKEFILE ON)
-set(CMAKE_C_FLAGS "-std=c99 -Wall -Wextra -pedantic")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
add_executable(i2bits i2bits.c)