error compiling darktable 4.4.2

I’m trying to compile dt 4.4.2 on xubuntu 22.04 with

./build.sh --prefix /opt/darktable/ --build-type Release && sudo git config --global --add safe.directory /home/paolo/git/darktable && sudo cmake --build "/home/paolo/git/darktable/build" --target install -- -j12

But compilation ends this way:

-- Signal debug: print-trace possible
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.81.0", minimum required is "7.56")  
-- Found recent CURL version to build piwigo.
-- building darktable-cmstest with colord support. nice.
-- LibRaw string version: 0.21.1
-- LibRaw ID version:     0x0211
-- LibRaw SO version:     23.0.0
CMake Error at src/external/LibRaw-cmake/CMakeLists.txt:179 (if):
  if given arguments:

    "LESS" "80"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "/home/paolo/git/darktable/build/CMakeFiles/CMakeOutput.log".
See also "/home/paolo/git/darktable/build/CMakeFiles/CMakeError.log".

What should I do?

Ciao, Paolo!

What directions did you follow?

This, from GitHub - darktable-org/darktable: darktable is an open source photography workflow application and raw developer?

git clone --recurse-submodules --depth 1 GitHub - darktable-org/darktable: darktable is an open source photography workflow application and raw developer
cd darktable
git fetch --tags
git checkout tags/release-4.4.2

followed by

git submodule update --init

and so on?

Cord. Sal.,
Claes a Lund, Svezia

I’m using a dt git repository I had on another laptop, I copied all the git folder.

On the previous laptop everything was ok, here not.

Then you are missing something on the new computer :-)))))
See dependencies Ubuntu.