epsonscan2: fix build with CMake 4 (#449644)

This commit is contained in:
Matteo Pacini
2025-10-08 07:37:08 +00:00
committed by GitHub
+3
View File
@@ -105,6 +105,9 @@ stdenv.mkDerivation {
# The non-free (Debian) packages uses this directory structure so do the same when compiling
# from source so we can easily merge them.
"-DCMAKE_INSTALL_LIBDIR=lib/${system}-gnu"
# There are many CMakeLists.txt files with various minimum versions. It's much easier to set this
# here, instead of substituting those everywhere
"-DCMAKE_POLICY_VERSION_MINIMUM=3.10"
]
++ lib.optionals (!withGui) [
"-DNO_GUI=ON"