nextpnr: Fix build the easy way

```
CMake Error at 3rdparty/googletest/googletest/CMakeLists.txt:48 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.
```

https://www.github.com/YosysHQ/nextpnr/issues/1578
This commit is contained in:
Artturin
2025-10-15 17:28:34 +03:00
parent af0bfe2d3a
commit 15a0b401bf
+3
View File
@@ -80,6 +80,9 @@ stdenv.mkDerivation rec {
"-DHIMBAECHEL_GOWIN_DEVICES=all"
"-DHIMBAECHEL_PRJBEYOND_DB=${prjbeyond_src}"
# https://github.com/YosysHQ/nextpnr/issues/1578
# `Compatibility with CMake < 3.5 has been removed from CMake.`
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
]
++ (lib.optional enableGui "-DBUILD_GUI=ON");