Build error against cmake 4

2 views
Skip to first unread message

Andreas Metzler

unread,
Sep 6, 2025, 8:25:05 AM (10 days ago) Sep 6
to pfstools
Hello,

pfstools fails to build against cmake 4 with:
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.

For Debian I have simply done
--- pfstools-2.2.0.orig/CMakeLists.txt
+++ pfstools-2.2.0/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 2.8.8)
+cmake_minimum_required (VERSION 3.5.0)

cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Reply all
Reply to author
Forward
0 new messages