libtins icon indicating copy to clipboard operation
libtins copied to clipboard

cmake version outdated: Compatibility with CMake < 3.5 has been removed from CMake

Open marek22k opened this issue 1 month ago • 4 comments

Hello,

the CMake version is no longer supported:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DLIBTINS_ENABLE_CXX11=1 -B build

commit fe221866238282057478b3c15e985dd12c8f49ef

marek22k avatar Nov 20 '25 23:11 marek22k

Ping on maintainer @mfontanini

marek22k avatar Nov 28 '25 06:11 marek22k

Feel free to create a PR. You also didn't post any error messages.

mfontanini avatar Nov 28 '25 06:11 mfontanini

Seems like copy-paste didn't work:

$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DLIBTINS_ENABLE_CXX11=1 -B build
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.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!

I only use the libtins project, I'm not familiar with its code. So it would be great if you, as the maintainer, could solve the problem.

For context: The problem affects both AUR packages of libtins for Arch.

marek22k avatar Nov 28 '25 06:11 marek22k

I tried to create a PR, https://github.com/mfontanini/libtins/pull/556 - it compiles for me. But of course, it's possible that I overlooked something.

marek22k avatar Nov 28 '25 07:11 marek22k