From 970542b879f84aab03fe1b9410c4222418ef9871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 15 Oct 2025 18:29:23 -0700 Subject: [PATCH] taco: fix build failure with cmake 4 - CMake 4 is no longer retro compatible with versions < 3.5 --- pkgs/by-name/ta/taco/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/ta/taco/package.nix b/pkgs/by-name/ta/taco/package.nix index 5cf747348056..4dd472fd36b1 100644 --- a/pkgs/by-name/ta/taco/package.nix +++ b/pkgs/by-name/ta/taco/package.nix @@ -37,6 +37,14 @@ stdenv.mkDerivation (finalAttrs: { rm -rf python_bindings/pybind11/* cp -r ${finalAttrs.src-new-pybind11}/* python_bindings/pybind11 find python_bindings/pybind11 -exec chmod +w {} \; + + # CMake4 no longer support version < 3.5 + substituteInPlace CMakeLists.txt --replace-fail \ + "cmake_minimum_required(VERSION 3.4.0 FATAL_ERROR)" \ + "cmake_minimum_required(VERSION 3.5)" + substituteInPlace apps/tensor_times_vector/CMakeLists.txt --replace-fail \ + "cmake_minimum_required(VERSION 2.8.12)" \ + "cmake_minimum_required(VERSION 3.5)" ''; # Remove test cases from cmake build as they violate modern C++ expectations