Skip to content

Commit 15a0b40

Browse files
committed
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
1 parent af0bfe2 commit 15a0b40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/by-name/ne/nextpnr/package.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ stdenv.mkDerivation rec {
8080

8181
"-DHIMBAECHEL_GOWIN_DEVICES=all"
8282
"-DHIMBAECHEL_PRJBEYOND_DB=${prjbeyond_src}"
83+
# https://github.com/YosysHQ/nextpnr/issues/1578
84+
# `Compatibility with CMake < 3.5 has been removed from CMake.`
85+
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
8386
]
8487
++ (lib.optional enableGui "-DBUILD_GUI=ON");
8588

0 commit comments

Comments
 (0)