Apply built-in lens correction for Nikon 24-70 F4 S

I have a problem building RawTherapee when lensfun is also built from source code. By default lensfun built from source code is installed in /usr/local. So I run cmake for RT as:

cmake -DCMAKE_BUILD_TYPE=“release” -DCACHE_NAME_SUFFIX=“5-dev” -DPROC_TARGET_NUMBER=“2” -DBUILD_BUNDLE=“ON” -DBUNDLE_BASE_INSTALL_DIR="$HOME/programs/rawtherapee" -DOPTION_OMP=“ON” -DLENSFUNDBDIR=/usr/local …/RawTherapee

and I get an error:

  • Checking for module ‘lensfun>=0.2’
    – Package ‘lensfun’, required by ‘virtual:world’, not found
    CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:457 (message):
    A required package was not found

So how do I specify lensfun location for RT when lensfun is installed in /usr/local?